platform/x86: panasonic-laptop: Add support for programmable buttons
authorJames Harmison <jharmison@redhat.com>
Mon, 9 Sep 2024 11:32:27 +0000 (13:32 +0200)
committerHans de Goede <hdegoede@redhat.com>
Wed, 11 Sep 2024 12:21:28 +0000 (14:21 +0200)
commitb522dd730b9680fdbd525ba2a1e781ccba5b69cb
treebd664e35f067931dcd2b3cb0dd7d7f11a456ad30
parentf80d7100f091e96b54beb32dc6d136520453582f
platform/x86: panasonic-laptop: Add support for programmable buttons

The value returned by "HINF" contains press/release information
in bit 7 and a keycode in bits 0-6.

Change the code to retrieve the keycode to use all 7 keycode bits instead
of only using bits 0-3 and add mappings for the higher keycodes used by
the programmable buttons found on newer panasonic toughbook models.

Tested-by: James Harmison <jharmison@redhat.com>
Signed-off-by: James Harmison <jharmison@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240909113227.254470-3-hdegoede@redhat.com
drivers/platform/x86/panasonic-laptop.c