]> git.baikalelectronics.ru Git - kernel.git/commit
Input: tm2-touchkey - allow changing keycodes from userspace
authorStephan Gerhold <stephan@gerhold.net>
Wed, 13 Oct 2021 11:23:05 +0000 (13:23 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 16 Oct 2021 03:26:30 +0000 (20:26 -0700)
commite3bbc4af2053dda40ad2b382ea0bffa9a19db3a3
tree6c0be57069c06d873db1b258a0e30415e837f163
parent373af3f4e0fe0dc0cd785736c0f1b781b9b785ff
Input: tm2-touchkey - allow changing keycodes from userspace

At the moment the touch keys have key codes assigned from the device
tree. In some cases, users might want to change the key code from
userspace. There is existing functionality for this in the input core
using the EVIOCSKEYCODE ioctl, which is integrated for example into udev.

Make it possible to use this functionality for tm2-touchkey by simply
making the input core aware of the array that holds the keycodes.
Similar code also exists in mcs_touchkey and mpr121_touchkey.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20211013112305.41574-2-stephan@gerhold.net
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/tm2-touchkey.c