mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
b7e79329c4
commit
2d53809594
2 changed files with 30 additions and 31 deletions
|
@ -16,9 +16,6 @@
|
|||
#define _LINUX_INPUT_ZFORCE_TS_H
|
||||
|
||||
struct zforce_ts_platdata {
|
||||
int gpio_int;
|
||||
int gpio_rst;
|
||||
|
||||
unsigned int x_max;
|
||||
unsigned int y_max;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue