Get rid of the attb_read_val() platform hook. Instead, read the ATTB gpio directly from the driver. Fail if valid ATTB gpio is not provided by patform data.
Showing the changes to include/linux/input (1 of 2 files). Show all
Unified · Split
| @@ -44,9 +44,9 @@ enum pixcir_int_mode { · 43 unmodified lines | ||
| 44 | 44 | #define PIXCIR_INT_POL_HIGH (1UL << 2) |
| 45 | 45 | |
| 46 | 46 | struct pixcir_ts_platform_data { |
| 47 | − int (*attb_read_val)(void); | |
| 48 | 47 | int x_max; |
| 49 | 48 | int y_max; |
| 49 | + int gpio_attb; /* GPIO connected to ATTB line */ | |
| 50 | 50 | }; |
| 51 | 51 | |
| 52 | 52 | #endif |