tsc2007.h 530 B

1234567891011121314151617181920
  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;
  7. u16 max_rt; /* max. resistance above which samples are ignored */
  8. unsigned long poll_delay; /* delay (in ms) after pen-down event
  9. before polling starts */
  10. int (*get_pendown_state)(void);
  11. void (*clear_penirq)(void); /* If needed, clear 2nd level
  12. interrupt source */
  13. int (*init_platform_hw)(void);
  14. void (*exit_platform_hw)(void);
  15. };
  16. #endif