]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda413c9eb8e50993ec156876b119c1c029cb3792
tree2ab805479aa69cf28dedec2f289300138969dcbc
parentdcc9a18733c16bbb517664f03a4931396a5d022b
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