tsc2007.h 655 B

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