Input: gpio-keys - add support for setkeycode
authorHans de Goede <hdegoede@redhat.com>
Sat, 21 Jan 2017 19:16:47 +0000 (11:16 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 21 Jan 2017 19:46:53 +0000 (11:46 -0800)
commit83e4947a569f4d544ef4a1361f51c91d73a9c915
tree372e8f937497f5a28ab49e13d39849571d25f7fe
parent5c4fa2a6da7fbc76290d1cb54a7e35633517a522
Input: gpio-keys - add support for setkeycode

gpio-keys input devices created by the soc_button_array driver are
configured with key-codes based on ACPI provided information.

Unfortunately on some tablets this info is wrong, and we need to have
a quirk to fix things up.

Add support for input_setkeycode to the gpio-keys driver, so that
the existing udev hwdb mechanism can be used to fix things up on these
tablets.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/gpio_keys.c