Input: tm2-touchkey - allow specifying custom keycodes
authorJonathan Bakker <xc-racer2@live.ca>
Mon, 7 Jan 2019 19:11:55 +0000 (11:11 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 7 Jan 2019 19:49:41 +0000 (11:49 -0800)
commit07df1c55270c142b5027dd31787c42d2b01e2e92
tree2ab805479aa69cf28dedec2f289300138969dcbc
parentd5a158cec4f33fbab031fc97fc17bfe5371925be
Input: tm2-touchkey - allow specifying custom keycodes

Not all devices use the same keycodes in the same order,
so add possibility to define keycodes for buttons present
on actual hardware.

If keycodes property is not present, we assume that device has
at least MENU and BACK keys.

Signed-off-by: Jonathan Bakker <xc-racer2@live.ca>
Signed-off-by: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt
drivers/input/keyboard/tm2-touchkey.c