Input: cyttsp - switch to using device properties
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: Oreste Salerno <oreste.salerno@tomtom.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:

committed by
Dmitry Torokhov

parent
69a124029b
commit
707b61bba8
@@ -40,19 +40,4 @@
|
||||
/* Active distance in pixels for a gesture to be reported */
|
||||
#define CY_ACT_DIST_DFLT 0xF8 /* pixels */
|
||||
|
||||
struct cyttsp_platform_data {
|
||||
u32 maxx;
|
||||
u32 maxy;
|
||||
bool use_hndshk;
|
||||
u8 act_dist; /* Active distance */
|
||||
u8 act_intrvl; /* Active refresh interval; ms */
|
||||
u8 tch_tmout; /* Active touch timeout; ms */
|
||||
u8 lp_intrvl; /* Low power refresh interval; ms */
|
||||
int (*init)(void);
|
||||
void (*exit)(void);
|
||||
char *name;
|
||||
s16 irq_gpio;
|
||||
u8 *bl_keys;
|
||||
};
|
||||
|
||||
#endif /* _CYTTSP_H_ */
|
||||
|
Reference in New Issue
Block a user