The current/old gpio framework used doesn't properly listen to ACTIVE_LOW and ACTIVE_HIGH flags. The newer gpio framework takes into account these flags when setting gpio values. Since the values being output were based on voltage and not logic they change to reflect this difference. Also use gpiod_set_value_cansleep since wake and reset pins can be provided by bus based io expanders. Switch from msleep(5) to udelay_range(5000,6000) to avoid check patch warning.
Showing the changes to include/linux/input (1 of 3 files). Show all
Unified · Split
| @@ -10,9 +10,6 @@ · 9 unmodified lines | |||
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | struct edt_ft5x06_platform_data { | 12 | struct edt_ft5x06_platform_data { |
| 13 | int irq_pin; | ||
| 14 | int reset_pin; | ||
| 15 | |||
| 16 | /* startup defaults for operational parameters */ | 13 | /* startup defaults for operational parameters */ |
| 17 | bool use_parameters; | 14 | bool use_parameters; |
| 18 | u8 gain; | 15 | u8 gain; |