]> 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)
commit2442d32d5fe7a905e5ec096c1194f229842acf7c
tree2ab805479aa69cf28dedec2f289300138969dcbc
parenta55585242836e48269a1868a435138a216fef731
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