]> git.baikalelectronics.ru Git - kernel.git/commit
Input: edt-ft5x06 - switch to newer gpio framework
authorFranklin S Cooper Jr <fcooper@ti.com>
Sat, 12 Sep 2015 00:30:34 +0000 (17:30 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 28 Sep 2015 00:33:58 +0000 (17:33 -0700)
commit5eaa096c668d7ee146168f583073965082c16edb
treeee8fb29e6b3d24054b9010f908880e0e4af0de42
parent0b6cc4f5dcbff2ed3c1070d00f0465694a586c3c
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.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.txt
drivers/input/touchscreen/edt-ft5x06.c
include/linux/input/edt-ft5x06.h