Skip to contentSkip to conversation

drivers: x86: pcengines-apuv2: fix dependencies

PATCH In review Enrico Weigelt, metux IT consult 2 participants 2 messages Mar 5, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: x86: pcengines-apuv2: fix dependencies

pcengines-apuv2 board driver needs to explicitly select LEDS_CLASS, INPUT, INPUT_KEYBOARD, so these are automatically defined correctly (eg. LEDS_CLASS=y if PCENGINES_APU2=y)

---
 drivers/platform/x86/Kconfig | 3 +++
 1 file changed, 3 insertions(+)
drivers/platform/x86/Kconfig +3 -0
index 851ea92..7d53380 100644
@@ -1307,7 +1307,10 @@ config PCENGINES_APU2
 	tristate "PC Engines APUv2/3 front button and LEDs driver"
 	select GPIO_AMD_FCH
 	select KEYBOARD_GPIO_POLLED
+	select LEDS_CLASS
 	select LEDS_GPIO
+	select INPUT
+	select INPUT_KEYBOARD
 	help
 	  This driver provides support for the front button and LEDs on
 	  PC Engines APUv2/APUv3 board.
Signature · 1 line
1.9.1
#1 lore raw
Quoted 22 lines · metux IT consult

pcengines-apuv2 board driver needs to explicitly select LEDS_CLASS, INPUT, INPUT_KEYBOARD, so these are automatically defined correctly (eg. LEDS_CLASS=y if PCENGINES_APU2=y)

---
 drivers/platform/x86/Kconfig | 3 +++
 1 file changed, 3 insertions(+)
drivers/platform/x86/Kconfig +0 -0
index 851ea92..7d53380 100644

drivers/platform/x86/Kconfig config PCENGINES_APU2 · line 1312

Quoted 6 lines
drivers/platform/x86/Kconfig +2 -0
@@ -1307,7 +1307,10 @@ config PCENGINES_APU2
 	tristate "PC Engines APUv2/3 front button and LEDs driver"
 	select GPIO_AMD_FCH
 	select KEYBOARD_GPIO_POLLED
+	select LEDS_CLASS
 	select LEDS_GPIO
+	select INPUT

Nak. We don't select entire subsystems. You should do:

depends on INPUT
select INPUT_KEYBOARD

Quoted 7 lines
drivers/platform/x86/Kconfig +1 -0
+	select INPUT_KEYBOARD
 
 
 	help
drivers/platform/x86/Kconfig +0 -0
 	  This driver provides support for the front button and LEDs on
 	  PC Engines APUv2/APUv3 board.
Signature · 1 line
~Randy