HID: HID_APPLETB_BL should depend on X86
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 10 Apr 2025 08:30:57 +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: 1fd41e5e3d7cc556 ("HID: hid-appletb-bl: add driver for the backlight 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 119e5190a2df786e5ff913bef2beaf590b7d92b7..43859fc757470caf6ad43bd5f72f119e9c36aea7 100644 (file)
@@ -151,6 +151,7 @@ config HID_APPLEIR
 config HID_APPLETB_BL
        tristate "Apple Touch Bar Backlight"
        depends on BACKLIGHT_CLASS_DEVICE
+       depends on X86 || COMPILE_TEST
        help
          Say Y here if you want support for the backlight of Touch Bars on x86
          MacBook Pros.