diff options
author | Vignesh R <vigneshr@ti.com> | 2016-08-25 09:46:41 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-08-29 20:24:23 -0700 |
commit | 694641616448a9c5b30b3a5e5f51da73cb3a0016 (patch) | |
tree | 7f1a864463f8def2c717e94a67b46a478fa59a35 /drivers/macintosh/via-pmu-event.h | |
parent | 680772647d96ed853d20f837a2726151f24d8b20 (diff) |
Input: add generic input driver to read encoded GPIO lines
Add a driver to read group of GPIO lines and provide its status as a
numerical value as input event to the system. This will help in
interfacing devices, that can be connected over GPIOs, that provide
input to the system by driving GPIO lines connected to them like a
rotary dial or a switch.
For example, a rotary switch can be connected to four GPIO lines. The
status of the GPIO lines reflect the actual position of the rotary
switch dial. For example, if dial points to 9, then the four GPIO lines
connected to the switch will read HLLH(0b'1001 = 9). This value
can be reported as an ABS_* event to the input subsystem.
Signed-off-by: Vignesh R <vigneshr@ti.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/macintosh/via-pmu-event.h')
0 files changed, 0 insertions, 0 deletions