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:
Johan Hovold
2011-05-11 16:35:30 -07:00
committed by Dmitry Torokhov
parent 521a8f5cb7
commit e70bdd41bd
3 changed files with 53 additions and 3 deletions

View File

@@ -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__ */