[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210316133946.2376963-1-geert+renesas@glider.be>
Date: Tue, 16 Mar 2021 14:39:46 +0100
From: Geert Uytterhoeven <geert+renesas@...der.be>
To: Pavel Machek <pavel@....cz>, Dan Murphy <dmurphy@...com>,
Amireddy Mallikarjuna reddy
<mallikarjunax.reddy@...ux.intel.com>
Cc: Arnd Bergmann <arnd@...db.de>, linux-leds@...r.kernel.org,
linux-kernel@...r.kernel.org,
Geert Uytterhoeven <geert+renesas@...der.be>
Subject: [PATCH] leds: LEDS_BLINK_LGM should depend on X86
The Intel Lightning Mountain (LGM) Serial Shift Output controller (SSO)
is only present on Intel Lightning Mountain SoCs. Hence add a
dependency on X86, to prevent asking the user about this driver when
configuring a kernel without Intel Lightning Mountain platform support.
While at it, merge the other dependencies into a single statement.
Fixes: c3987cd2bca34ddf ("leds: lgm: Add LED controller driver for LGM SoC")
Signed-off-by: Geert Uytterhoeven <geert+renesas@...der.be>
---
drivers/leds/blink/Kconfig | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/leds/blink/Kconfig b/drivers/leds/blink/Kconfig
index 6dedc58c47b3ea16..852e634002cda7cf 100644
--- a/drivers/leds/blink/Kconfig
+++ b/drivers/leds/blink/Kconfig
@@ -9,10 +9,8 @@ if LEDS_BLINK
config LEDS_BLINK_LGM
tristate "LED support for Intel LGM SoC series"
- depends on GPIOLIB
- depends on LEDS_CLASS
- depends on MFD_SYSCON
- depends on OF
+ depends on X86 || COMPILE_TEST
+ depends on GPIOLIB && LEDS_CLASS && MFD_SYSCON && OF
help
Parallel to serial conversion, which is also called SSO controller,
can drive external shift register for LED outputs.
--
2.25.1
Powered by blists - more mailing lists