1 /* SPDX-License-Identifier: GPL-2.0 */ << 2 #ifndef __LINUX_I2C_TSC2007_H 1 #ifndef __LINUX_I2C_TSC2007_H 3 #define __LINUX_I2C_TSC2007_H 2 #define __LINUX_I2C_TSC2007_H 4 3 5 /* linux/platform_data/tsc2007.h */ 4 /* linux/platform_data/tsc2007.h */ 6 5 7 struct tsc2007_platform_data { 6 struct tsc2007_platform_data { 8 u16 model; 7 u16 model; /* 2007. */ 9 u16 x_plate_ohms; /* must be non 8 u16 x_plate_ohms; /* must be non-zero value */ 10 u16 max_rt; /* max. resistance abo 9 u16 max_rt; /* max. resistance above which samples are ignored */ 11 unsigned long poll_period; /* time (in 10 unsigned long poll_period; /* time (in ms) between samples */ 12 int fuzzx; /* fuzz factor for X, Y 11 int fuzzx; /* fuzz factor for X, Y and pressure axes */ 13 int fuzzy; 12 int fuzzy; 14 int fuzzz; 13 int fuzzz; 15 14 16 int (*get_pendown_state)(struct de 15 int (*get_pendown_state)(struct device *); 17 /* If needed, clear 2nd level interrup 16 /* If needed, clear 2nd level interrupt source */ 18 void (*clear_penirq)(void); 17 void (*clear_penirq)(void); 19 int (*init_platform_hw)(void); 18 int (*init_platform_hw)(void); 20 void (*exit_platform_hw)(void); 19 void (*exit_platform_hw)(void); 21 }; 20 }; 22 21 23 #endif 22 #endif 24 23
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.