HID: HID_APPLETB_KBD should depend on X86
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 10 Apr 2025 08:30:56 +0000 (10:30 +0200)
committerJiri Kosina <jkosina@suse.com>
Thu, 24 Apr 2025 10:32:02 +0000 (12:32 +0200)
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>
Reviewed-by: Aditya Garg <gargaditya08@live.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/Kconfig

index a503252702b7b43c332a12b14bc8b23b83e9f028..119e5190a2df786e5ff913bef2beaf590b7d92b7 100644 (file)
@@ -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