tsc2007.h 606 B

12345678910111213141516171819202122
  1. #ifndef __LINUX_I2C_TSC2007_H
  2. #define __LINUX_I2C_TSC2007_H
  3. /* linux/i2c/tsc2007.h */
  4. struct tsc2007_platform_data {
  5. u16 model; /* 2007. */
  6. u16 x_plate_ohms; /* must be non-zero value */
  7. u16 max_rt; /* max. resistance above which samples are ignored */
  8. unsigned long poll_period; /* time (in ms) between samples */
  9. int fuzzx; /* fuzz factor for X, Y and pressure axes */
  10. int fuzzy;
  11. int fuzzz;
  12. int (*get_pendown_state)(struct device *);
  13. /* If needed, clear 2nd level interrupt source */
  14. void (*clear_penirq)(void);
  15. int (*init_platform_hw)(void);
  16. void (*exit_platform_hw)(void);
  17. };
  18. #endif