History

Input: edt-ft5x06 - switch to newer gpio framework

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.

Franklin S Cooper Jr committed 11 years ago

Commit 13c23cd1 parent c5c18a03 files · +40 −96Browse files

Showing the changes to include/linux/input (1 of 3 files). Show all

Unified · Split

include/linux/input/edt-ft5x06.h+0−3
@@ -10,9 +10,6 @@ · 9 unmodified lines
10 */10 */
11 11
12struct edt_ft5x06_platform_data {12struct 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;