mbox series

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

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

Message

Donghoon Han Jan. 5, 2019, 8:26 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                        | 23 +++++++++++++++++++++--
 2 files changed, 33 insertions(+), 2 deletions(-)