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>
This commit is contained in:
parent
521a8f5cb7
commit
e70bdd41bd
3 changed files with 53 additions and 3 deletions
|
@ -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__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue