platform/x86: thinkpad_acpi: Select INPUT_SPARSEKMAP in Kconfig
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 22 May 2024 11:48:13 +0000 (07:48 -0400)
committerHans de Goede <hdegoede@redhat.com>
Mon, 27 May 2024 09:30:34 +0000 (11:30 +0200)
commit5d059bf2b1c4d5779a4c09ec418e40eded44a187
tree2f1439dfd2ec7dc568f7dce88cd860ce4e47a5eb
parent4d6ef1be2492a6789ba2b711933625cd72ced39d
platform/x86: thinkpad_acpi: Select INPUT_SPARSEKMAP in Kconfig

Now that drivers/platform/x86/thinkpad_acpi.c uses
sparse_keymap_report_event(), it must select INPUT_SPARSEKMAP in its
Kconfig option otherwise the build fails with:

  ld: vmlinux.o: in function `tpacpi_input_send_key':
  thinkpad_acpi.c:(.text+0xd4d27f): undefined reference to `sparse_keymap_report_event'
  ld: vmlinux.o: in function `hotkey_init':
  thinkpad_acpi.c:(.init.text+0x66cb6): undefined reference to `sparse_keymap_setup'

Fixes: 42f7b965de9d ("platform/x86: thinkpad_acpi: Switch to using sparse-keymap helpers")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240522074813.379b9fc2@gandalf.local.home
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/Kconfig