Input: rotary_encoder - move away from platform data structure

Drop support for platform data passed via a C-structure and switch to
device properties instead, which should make the driver compatible with all
platforms: OF, ACPI and static boards. Static boards should use property
sets to communicate device parameters to the driver.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
Dmitry Torokhov
2016-01-17 10:57:09 -08:00
parent 8631580f4f
commit a9e340dce3
3 changed files with 76 additions and 112 deletions

View File

@@ -1,13 +0,0 @@
#ifndef __ROTARY_ENCODER_H__
#define __ROTARY_ENCODER_H__
struct rotary_encoder_platform_data {
unsigned int steps;
unsigned int axis;
unsigned int steps_per_period;
bool relative_axis;
bool rollover;
bool wakeup_source;
};
#endif /* __ROTARY_ENCODER_H__ */