]> git.baikalelectronics.ru Git - 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)
commit3d3343ef3e204d8248a10d3f0735661077a603e0
tree0dc4a844ba6017a8af85e4f9fd79c489ada07e1d
parentfe659f6bf6b18c83fc9588d5e8f6df4bd9f44f83
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: 7070e94741f2 ("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