[PATCH] leds: Do not enable by default during compile testing

Krzysztof Kozlowski posted 1 patch 8 months ago
drivers/leds/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] leds: Do not enable by default during compile testing
Posted by Krzysztof Kozlowski 8 months ago
Enabling the compile test should not cause automatic enabling of all
drivers, but only allow to choose to compile them.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

---

For longer rationale:
https://lore.kernel.org/all/191543a8-2e2e-4ac4-9b2b-d253820a0c9f@app.fastmail.com/
---
 drivers/leds/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
index a104cbb0a001..b107dbe1fa90 100644
--- a/drivers/leds/Kconfig
+++ b/drivers/leds/Kconfig
@@ -735,7 +735,7 @@ config LEDS_NS2
 	tristate "LED support for Network Space v2 GPIO LEDs"
 	depends on LEDS_CLASS
 	depends on MACH_KIRKWOOD || MACH_ARMADA_370 || COMPILE_TEST
-	default y
+	default y if MACH_KIRKWOOD || MACH_ARMADA_370
 	help
 	  This option enables support for the dual-GPIO LEDs found on the
 	  following LaCie/Seagate boards:
@@ -750,7 +750,7 @@ config LEDS_NETXBIG
 	depends on LEDS_CLASS
 	depends on MACH_KIRKWOOD || COMPILE_TEST
 	depends on OF_GPIO
-	default y
+	default MACH_KIRKWOOD
 	help
 	  This option enables support for LEDs found on the LaCie 2Big
 	  and 5Big Network v2 boards. The LEDs are wired to a CPLD and are
-- 
2.45.2
Re: (subset) [PATCH] leds: Do not enable by default during compile testing
Posted by Lee Jones 7 months, 3 weeks ago
On Thu, 17 Apr 2025 09:46:56 +0200, Krzysztof Kozlowski wrote:
> Enabling the compile test should not cause automatic enabling of all
> drivers, but only allow to choose to compile them.
> 
> 

Applied, thanks!

[1/1] leds: Do not enable by default during compile testing
      commit: eabddf599329ee21ba869b21a7ed11e1cdf45c7d

--
Lee Jones [李琼斯]