diff options
author | Johan Hovold | 2011-05-12 01:35:30 +0200 |
---|---|---|
committer | Dmitry Torokhov | 2011-05-12 17:28:47 +0200 |
commit | e70bdd41bd0ead91b4a43e9d656ac1569d7c8779 (patch) | |
tree | 9518f22417dde4f2b2d2ed3a25af8bc8f4e3814c /include/linux/rotary_encoder.h | |
parent | Input: rotary-encoder - refactor and clean up (diff) | |
download | kernel-qcow2-linux-e70bdd41bd0ead91b4a43e9d656ac1569d7c8779.tar.gz kernel-qcow2-linux-e70bdd41bd0ead91b4a43e9d656ac1569d7c8779.tar.xz kernel-qcow2-linux-e70bdd41bd0ead91b4a43e9d656ac1569d7c8779.zip |
Input: rotary-encoder - add support for half-period encoders
Add support for encoders that have two detents per input signal period.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Acked-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/rotary_encoder.h')
-rw-r--r-- | include/linux/rotary_encoder.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/rotary_encoder.h b/include/linux/rotary_encoder.h index 215278b8df2a..3f594dce5716 100644 --- a/include/linux/rotary_encoder.h +++ b/include/linux/rotary_encoder.h @@ -10,6 +10,7 @@ struct rotary_encoder_platform_data { unsigned int inverted_b; bool relative_axis; bool rollover; + bool half_period; }; #endif /* __ROTARY_ENCODER_H__ */ |