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)
commit034b8c2e7b06777775c55cd2db2b6a98f4791b5f
tree234524ea44deef29d86cfb54ecab32c17905636a
parent5862b4df6681c4bc4051b71099f616a41ac696c2
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