]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: intel-vbtn: Create 2 separate input-devs for buttons and switches
authorHans de Goede <hdegoede@redhat.com>
Fri, 15 Jan 2021 16:18:48 +0000 (17:18 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 25 Jan 2021 20:34:28 +0000 (21:34 +0100)
commit650419b784fec3b53c9b2e227180738b55a7a621
tree234524ea44deef29d86cfb54ecab32c17905636a
parent9729b2cb3dd180c9d88f55f218ac8e08c7c3d0ac
platform/x86: intel-vbtn: Create 2 separate input-devs for buttons and switches

Create 2 separate input-devs for buttons and switches, this is a
preparation for dynamically registering the switches-input device
for devices which are not on the switches allow-list, but do make
Notify() calls with an event value from the switches sparse-keymap.

This also brings the intel-vbtn driver inline with the intel-hid
driver which is doing the same thing.

Cc: Elia Devito <eliadevito@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210115161850.117614-2-hdegoede@redhat.com
drivers/platform/x86/intel-vbtn.c