Skip to contentSkip to conversation

input: misc: Kconfig: use select instead of depends on KEYBOARD_GPIO

PATCH In review Enrico Weigelt, metux IT consult 3 participants 4 messages Nov 21, 2019 – Dec 2, 2019

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

PATCH 1/1 input: misc: Kconfig: use select instead of depends on KEYBOARD_GPIO

From: Enrico Weigelt <[email protected]>

Make selection of the driver a bit easier by replacing depends on KEYBOARD_GPIO by select, so we don't need to enable KEYBOARD_GPIO before being able to enable INPUT_SOC_BUTTON_ARRAY.

---
 drivers/input/misc/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/input/misc/Kconfig +2 -1
index 7d9ae394e597..99d263177d8d 100644
@@ -813,7 +813,8 @@ config INPUT_IDEAPAD_SLIDEBAR
 
 config INPUT_SOC_BUTTON_ARRAY
 	tristate "Windows-compatible SoC Button Array"
-	depends on KEYBOARD_GPIO && ACPI
+	depends on ACPI
+	select KEYBOARD_GPIO
 	help
 	  Say Y here if you have a SoC-based tablet that originally runs
 	  Windows 8 or a Microsoft Surface Book 2, Pro 5, Laptop 1 or later.
Signature · 1 line
2.11.0
maintainer
#1 lore raw
Quoted 16 lines · metux IT consult

From: Enrico Weigelt <[email protected]>

Make selection of the driver a bit easier by replacing depends on KEYBOARD_GPIO by select, so we don't need to enable KEYBOARD_GPIO before being able to enable INPUT_SOC_BUTTON_ARRAY.

---
 drivers/input/misc/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/input/misc/Kconfig +0 -0
index 7d9ae394e597..99d263177d8d 100644

drivers/input/misc/Kconfig config INPUT_IDEAPAD_SLIDEBAR · line 817

Quoted 6 lines
drivers/input/misc/Kconfig +2 -1
@@ -813,7 +813,8 @@ config INPUT_IDEAPAD_SLIDEBAR
 
 config INPUT_SOC_BUTTON_ARRAY
 	tristate "Windows-compatible SoC Button Array"
-	depends on KEYBOARD_GPIO && ACPI
+	depends on ACPI
+	select KEYBOARD_GPIO

KEYBOARD_GPIO depends on GPIOLIB and "select" does not propagate dependencies, so you may still end up with invalid configs...

Thanks.

Signature · 1 line
Dmitry
#2 lore raw
Quoted 2 lines · Dmitry Torokhov

KEYBOARD_GPIO depends on GPIOLIB and "select" does not propagate dependencies, so you may still end up with invalid configs...

Sure that they don't propagate ? In this case, I've got yet another todo ... :o

--mtx

Signature · 12 lines
Dringender Hinweis: aufgrund existenzieller Bedrohung durch "Emotet"
sollten Sie *niemals* MS-Office-Dokumente via E-Mail annehmen/öffenen,
selbst wenn diese von vermeintlich vertrauenswürdigen Absendern zu
stammen scheinen. Andernfalls droht Totalschaden.
---
Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert
werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren
GPG/PGP-Schlüssel zu.
---
Enrico Weigelt, metux IT consult
Free software and Linux embedded engineering
[email protected] -- +49-151-27565287
maintainer
#3 lore raw
Quoted 7 lines · metux IT consult
Quoted 2 lines · Dmitry Torokhov

KEYBOARD_GPIO depends on GPIOLIB and "select" does not propagate dependencies, so you may still end up with invalid configs...

Sure that they don't propagate ? In this case, I've got yet another todo ... :o

Yes, I am sure.

Signature · 1 line
Dmitry