mbox series

[V2,0/2] input: rotary-encoder: Support key events

Message ID 20190107164249.2342-1-nazgul33@gmail.com (mailing list archive)
Headers show
Series input: rotary-encoder: Support key events | expand

Message

Donghoon Han Jan. 7, 2019, 4:42 p.m. UTC
This patchset supports generating EV_KEY, instead of EV_REL.

An example could be a volume knob, with key events:
 - KEY_VOLUMEDOWN / KEY_VOLUMEUP

[tested on imx6q platform,  full period, half period]

Donghoon Han (2):
    Input: rotary_encoder - Support key events
    Input: rotaty-encoder - Add DT binding document

 Documentation/devicetree/bindings/input/rotary-encoder.txt | 12 ++++++++++++
 drivers/input/misc/rotary_encoder.c                        | 24 ++++++++++++++++++++++--
 2 files changed, 34 insertions(+), 2 deletions(-)