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
1010 */
1111
1212 struct edt_ft5x06_platform_data {
13− int irq_pin;
14− int reset_pin;
15−
1613 /* startup defaults for operational parameters */
1714 bool use_parameters;
1815 u8 gain;