]> git.karo-electronics.de Git - linux-beck.git/commit
Input: zforce_ts - convert to use the gpiod interface
authorDirk Behme <dirk.behme@de.bosch.com>
Mon, 6 Jul 2015 22:57:44 +0000 (15:57 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 9 Jul 2015 04:50:57 +0000 (21:50 -0700)
commit2d53809594afaf2ae66a90a3142c1b702fd3bcea
treeb238ec0c1e98f784146b87a7c15c6e4496acd28b
parentb7e79329c4e34d63cd374e603ece91f2b2c3331e
Input: zforce_ts - convert to use the gpiod interface

Use the new GPIO descriptor interface to handle the zForce GPIOs.
This simplifies the code and allows transparently handle GPIO polarity, as
specified in device tree data.

Also switch to using gpio_{set|get}_value_cansleep() since none of the
callers is in atomic context and cansleep variant allows more GPIO
controllers to be used with the touchscreen.

Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/zforce_ts.c
include/linux/platform_data/zforce_ts.h