]> git.baikalelectronics.ru Git - kernel.git/commit
Input: add SW_PEN_INSERTED define
authorDouglas Anderson <dianders@chromium.org>
Tue, 28 Jun 2016 17:32:00 +0000 (10:32 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 29 Jun 2016 16:51:03 +0000 (09:51 -0700)
commit98d96450535f8ff9f0d7b2d4fe3653be7886a714
tree9581a44476e21c528225d515de19b52720d0f755
parent79efb9ae59193c8def10e5948e8bdb56d15137e6
Input: add SW_PEN_INSERTED define

Some devices with a pen may have a switch that can be used to detect
when the pen is inserted or removed to a slot on the device.  Let's add
a define to the input event codes so that everyone can be on the same
page for what event we should generate when the pen is inserted or
removed.

In general the pen switch could be used by the software on the device to
kick off any number of actions when the pen is inserted or removed.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
include/uapi/linux/input-event-codes.h