Skip to contentSkip to conversation

input: Correct dependencies for BUTTON_KEYBOARD

PATCH In review Tom Rini 2 participants 3 messages Mar 17 – Mar 30 Input drivers

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 input: Correct dependencies for BUTTON_KEYBOARD

As exposed by "make randconfig", we have an issue with the dependencies for BUTTON_KEYBOARD. This needs to also depend on DM_GPIO, and then select BUTTON as well as BUTTON_GPIO, in order to meet all its requirements.

---
Cc: Casey Connolly <[email protected]>

---
 drivers/input/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/input/Kconfig +2 -1
index 47ce0ea690fd..5bf122c55051 100644
@@ -48,7 +48,8 @@ config APPLE_SPI_KEYB
 
 config BUTTON_KEYBOARD
 	bool "Buttons as keyboard"
-	depends on DM_KEYBOARD
+	depends on DM_KEYBOARD && DM_GPIO
+	select BUTTON
 	select BUTTON_GPIO
 	help
 	  Enable support for mapping buttons to keycode events. Use linux,code button driver
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Tom Rini

As exposed by "make randconfig", we have an issue with the dependencies for BUTTON_KEYBOARD. This needs to also depend on DM_GPIO, and then select BUTTON as well as BUTTON_GPIO, in order to meet all its requirements.

Quoted 20 lines

---
Cc: Casey Connolly <[email protected]>

---
 drivers/input/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/input/Kconfig +2 -1
index 47ce0ea690fd..5bf122c55051 100644
@@ -48,7 +48,8 @@ config APPLE_SPI_KEYB
 
 config BUTTON_KEYBOARD
 	bool "Buttons as keyboard"
-	depends on DM_KEYBOARD
+	depends on DM_KEYBOARD && DM_GPIO
+	select BUTTON
 	select BUTTON_GPIO
 	help
 	  Enable support for mapping buttons to keycode events. Use linux,code button driver
Signature · 1 line
// Casey (she/her)
author
#2 lore raw
In reply to Tom Rini
Quoted 6 lines · Tom Rini

As exposed by "make randconfig", we have an issue with the dependencies for BUTTON_KEYBOARD. This needs to also depend on DM_GPIO, and then select BUTTON as well as BUTTON_GPIO, in order to meet all its requirements.

Applied to u-boot/next, thanks!

[1/1] input: Correct dependencies for BUTTON_KEYBOARD

      commit: 292f1b974b2f2076325ca5648fca1db9eb2366ea
Signature · 1 line
Tom