leds: LEDS_BLINK_LGM should depend on X86
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 16 Mar 2021 13:39:46 +0000 (14:39 +0100)
committerPavel Machek <pavel@ucw.cz>
Sun, 25 Apr 2021 20:56:42 +0000 (22:56 +0200)
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.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/blink/Kconfig

index 964c503..59ba81e 100644 (file)
@@ -1,9 +1,7 @@
 config LEDS_LGM
        tristate "LED support for 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
          This option enables support for LEDs connected to GPIO lines on
          Lightning Mountain (LGM) SoC. Lightning Mountain is a AnyWAN