]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
platform/x86: intel-vbtn: Split keymap into buttons and switches parts
authorHans de Goede <hdegoede@redhat.com>
Sat, 2 May 2020 18:29:48 +0000 (20:29 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 7 May 2020 17:19:37 +0000 (20:19 +0300)
commitf6ba524970c4b73b234bf41ecd6628f5803b1559
tree0dc4a844ba6017a8af85e4f9fd79c489ada07e1d
parent18937875a231d831c309716d6d8fc358f8381881
platform/x86: intel-vbtn: Split keymap into buttons and switches parts

Split the sparse keymap into 2 separate keymaps, a buttons and a switches
keymap and combine the 2 to a single map again in intel_vbtn_input_setup().

This is a preparation patch for not telling userspace that we have switches
when we do not have them (and for doing the same for the buttons).

Fixes: de9647efeaa9 ("platform/x86: intel-vbtn: Only activate tablet mode switch on 2-in-1's")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel-vbtn.c