linux/drivers/platform
Mark Pearson a9b0b1ee59 platform/x86: thinkpad_acpi: Support for trackpoint doubletap
Lenovo trackpoints are adding the ability to generate a doubletap event.
This handles the doubletap event and sends the KEY_PROG4 event to
userspace. Despite the driver itself not using KEY_PROG1 - KEY_PROG3 this
still uses KEY_PROG4 because of some keys being remapped to KEY_PROG1 -
KEY_PROG3 by default by the upstream udev hwdb containing:

evdev:name:ThinkPad Extra Buttons:dmi:bvn*:bvr*:bd*:svnLENOVO*:pn*:*
 ...
 KEYBOARD_KEY_17=prog1
 KEYBOARD_KEY_1a=f20       # Microphone mute button
 KEYBOARD_KEY_45=bookmarks
 KEYBOARD_KEY_46=prog2     # Fn + PrtSc, on Windows: Snipping tool
 KEYBOARD_KEY_4a=prog3     # Fn + Right shift, on Windows: No idea

Signed-off-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Signed-off-by: Vishnu Sankar <vishnuocv@gmail.com>
Link: https://lore.kernel.org/r/20240417173124.9953-2-mpearson-lenovo@squebb.ca
[hdegoede@redhat.com: Adjust for switch to sparse-keymap keymaps]
Tested-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240424122834.19801-23-hdegoede@redhat.com
2024-04-29 11:53:52 +02:00
..
arm64 platform: arm64: Add Acer Aspire 1 embedded controller driver 2024-03-25 15:49:01 +01:00
chrome TTY/Serial driver update for 6.9-rc1 2024-03-21 12:44:10 -07:00
goldfish platform: goldfish: move the separate 'default' propery for CONFIG_GOLDFISH 2024-03-07 21:47:48 +00:00
loongarch platform/loongarch: laptop: Fix possible UAF and simplify generic_acpi_laptop_init() 2022-10-29 16:29:31 +08:00
mellanox platform/mellanox: mlxreg-hotplug: Remove redundant NULL-check 2024-03-12 12:48:36 +02:00
mips mips: rs870e: stop exporting local functions 2023-12-10 17:21:39 -08:00
olpc platform/olpc: olpc-xo175-ec: Use SPI device ID data to bind device 2023-03-20 14:43:35 +01:00
surface platform/surface: aggregator_registry: Add support for thermal sensors on the Surface Pro 9 2024-04-08 17:22:33 +02:00
x86 platform/x86: thinkpad_acpi: Support for trackpoint doubletap 2024-04-29 11:53:52 +02:00
Kconfig platform: Add ARM64 platform directory 2024-03-25 15:48:04 +01:00
Makefile platform: Add ARM64 platform directory 2024-03-25 15:48:04 +01:00