[PATCH v2 1/2] HID: HID_APPLETB_KBD should depend on X86

Geert Uytterhoeven posted 2 patches 8 months, 1 week ago
[PATCH v2 1/2] HID: HID_APPLETB_KBD should depend on X86
Posted by Geert Uytterhoeven 8 months, 1 week ago
The Apple Touch Bar is only present on x86 MacBook Pros.  Hence add a
dependency on X86, to prevent asking the user about this driver when
configuring a kernel for a different architecture.

Fixes: 8e9b9152cfbdc2a9 ("HID: hid-appletb-kbd: add driver for the keyboard mode of Apple Touch Bars")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
This is v2 of "HID: HID_APPLETB_BL and HID_APPLETB_KBD should depend on
X86".

v2:
  - Split in two patches,
  - Correct Fixes.
---
 drivers/hid/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
index a503252702b7b43c..119e5190a2df786e 100644
--- a/drivers/hid/Kconfig
+++ b/drivers/hid/Kconfig
@@ -163,6 +163,7 @@ config HID_APPLETB_KBD
 	depends on USB_HID
 	depends on BACKLIGHT_CLASS_DEVICE
 	depends on INPUT
+	depends on X86 || COMPILE_TEST
 	select INPUT_SPARSEKMAP
 	select HID_APPLETB_BL
 	help
-- 
2.43.0