Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/x86: fix PCENGINES_APU2 Kconfig warning

Fix Kconfig warning for PCENGINES_APU2 symbol:

WARNING: unmet direct dependencies detected for KEYBOARD_GPIO_POLLED
Depends on [n]: !UML && INPUT [=y] && INPUT_KEYBOARD [=n] && GPIOLIB [=y]
Selected by [y]:
- PCENGINES_APU2 [=y] && X86 [=y] && X86_PLATFORM_DEVICES [=y]

Add INPUT_KEYBOARD dependency for KEYBOARD_GPIO_POLLED.
Add LEDS_CLASS dependency for LEDS_GPIO.

Fixes: f8eb0235f659 ("x86: pcengines apuv2 gpio/leds/keys platform driver")
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Enrico Weigelt, metux IT consult <info@metux.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Randy Dunlap and committed by
Linus Walleij
a422bf11 c378b3aa

+2
+2
drivers/platform/x86/Kconfig
··· 1305 1305 1306 1306 config PCENGINES_APU2 1307 1307 tristate "PC Engines APUv2/3 front button and LEDs driver" 1308 + depends on INPUT && INPUT_KEYBOARD 1309 + depends on LEDS_CLASS 1308 1310 select GPIO_AMD_FCH 1309 1311 select KEYBOARD_GPIO_POLLED 1310 1312 select LEDS_GPIO