| Kwangwoo Lee | 50b6f1f | 2008-12-20 04:26:01 -0500 | [diff] [blame] | 1 | #ifndef __LINUX_I2C_TSC2007_H | 
|  | 2 | #define __LINUX_I2C_TSC2007_H | 
|  | 3 |  | 
|  | 4 | /* linux/i2c/tsc2007.h */ | 
|  | 5 |  | 
|  | 6 | struct tsc2007_platform_data { | 
|  | 7 | u16	model;				/* 2007. */ | 
| Philip Rakity | 341deef | 2011-10-11 20:54:55 -0700 | [diff] [blame] | 8 | u16	x_plate_ohms;	/* must be non-zero value */ | 
| Thierry Reding | 84005eb | 2011-05-17 09:31:01 -0700 | [diff] [blame] | 9 | u16	max_rt; /* max. resistance above which samples are ignored */ | 
| Thierry Reding | 2d137c7e | 2011-05-17 09:31:33 -0700 | [diff] [blame] | 10 | unsigned long poll_delay; /* delay (in ms) after pen-down event | 
|  | 11 | before polling starts */ | 
| Thierry Reding | 1af38ea | 2011-05-17 09:32:02 -0700 | [diff] [blame] | 12 | unsigned long poll_period; /* time (in ms) between samples */ | 
| Thierry Reding | 891e376 | 2011-05-17 09:32:29 -0700 | [diff] [blame] | 13 | int	fuzzx; /* fuzz factor for X, Y and pressure axes */ | 
|  | 14 | int	fuzzy; | 
|  | 15 | int	fuzzz; | 
| Kwangwoo Lee | 50b6f1f | 2008-12-20 04:26:01 -0500 | [diff] [blame] | 16 |  | 
|  | 17 | int	(*get_pendown_state)(void); | 
|  | 18 | void	(*clear_penirq)(void);		/* If needed, clear 2nd level | 
|  | 19 | interrupt source */ | 
|  | 20 | int	(*init_platform_hw)(void); | 
|  | 21 | void	(*exit_platform_hw)(void); | 
|  | 22 | }; | 
|  | 23 |  | 
|  | 24 | #endif |