blob: 342b130a0a98680f4acf0e3dcc376b39e449c51b [file] [log] [blame]
Kwangwoo Lee50b6f1f2008-12-20 04:26:01 -05001#ifndef __LINUX_I2C_TSC2007_H
2#define __LINUX_I2C_TSC2007_H
3
4/* linux/i2c/tsc2007.h */
5
6struct tsc2007_platform_data {
7 u16 model; /* 2007. */
8 u16 x_plate_ohms;
Thierry Reding84005eb2011-05-17 09:31:01 -07009 u16 max_rt; /* max. resistance above which samples are ignored */
Thierry Reding2d137c7e2011-05-17 09:31:33 -070010 unsigned long poll_delay; /* delay (in ms) after pen-down event
11 before polling starts */
Kwangwoo Lee50b6f1f2008-12-20 04:26:01 -050012
13 int (*get_pendown_state)(void);
14 void (*clear_penirq)(void); /* If needed, clear 2nd level
15 interrupt source */
16 int (*init_platform_hw)(void);
17 void (*exit_platform_hw)(void);
18};
19
20#endif