diff options
author | Johan Hovold <jhovold@gmail.com> | 2011-05-11 16:35:30 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-05-12 08:28:47 -0700 |
commit | e70bdd41bd0ead91b4a43e9d656ac1569d7c8779 (patch) | |
tree | 9518f22417dde4f2b2d2ed3a25af8bc8f4e3814c /include/linux/rotary_encoder.h | |
parent | 521a8f5cb79d1017d00d26143227159674e3b79d (diff) | |
download | lwn-e70bdd41bd0ead91b4a43e9d656ac1569d7c8779.tar.gz lwn-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__ */ |