blob: 4f35b6ad3889fac069910379c48b149dea413358 [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. */
Philip Rakity341deef2011-10-11 20:54:55 -07008 u16 x_plate_ohms; /* must be non-zero value */
Thierry Reding84005eb2011-05-17 09:31:01 -07009 u16 max_rt; /* max. resistance above which samples are ignored */
Thierry Reding1af38ea2011-05-17 09:32:02 -070010 unsigned long poll_period; /* time (in ms) between samples */
Thierry Reding891e3762011-05-17 09:32:29 -070011 int fuzzx; /* fuzz factor for X, Y and pressure axes */
12 int fuzzy;
13 int fuzzz;
Kwangwoo Lee50b6f1f2008-12-20 04:26:01 -050014
Denis Carikli07f9e5c2013-11-19 11:56:04 -080015 int (*get_pendown_state)(struct device *);
16 /* If needed, clear 2nd level interrupt source */
17 void (*clear_penirq)(void);
Kwangwoo Lee50b6f1f2008-12-20 04:26:01 -050018 int (*init_platform_hw)(void);
19 void (*exit_platform_hw)(void);
20};
21
22#endif