platform/x86: quickstart: fix Kconfig selects
authorArnd Bergmann <arnd@arndb.de>
Thu, 4 Apr 2024 12:34:30 +0000 (14:34 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 8 Apr 2024 13:22:23 +0000 (15:22 +0200)
The new driver Kconfig entry has a typo that causes a link failure
when CONFIG_INPUT_SPARSEKMAP is disabled:

x86_64-linux-ld: drivers/platform/x86/quickstart.o: in function `quickstart_notify':
quickstart.c:(.text+0x96): undefined reference to `sparse_keymap_report_event'
x86_64-linux-ld: drivers/platform/x86/quickstart.o: in function `quickstart_probe':
quickstart.c:(.text+0x1da): undefined reference to `sparse_keymap_setup'

Select this symbol instead of the incorrect INPUT_SPARSE_KEYMAP.

Fixes: afd66f2a739e ("platform/x86: Add ACPI quickstart button (PNP0C32) driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: https://lore.kernel.org/r/20240404123435.2684819-1-arnd@kernel.org
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/Kconfig

index cfceaaa827a761ca22eb4ab098566c3355001177..168b57df0a6a612ecd907438e21d546ad7bb9944 100644 (file)
@@ -646,7 +646,7 @@ config ACPI_QUICKSTART
        tristate "ACPI Quickstart button driver"
        depends on ACPI
        depends on INPUT
-       select INPUT_SPARSE_KEYMAP
+       select INPUT_SPARSEKMAP
        help
          This driver adds support for ACPI quickstart button (PNP0C32) devices.
          The button emits a manufacturer-specific key value when pressed, so