mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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>
This commit is contained in:
parent
c5c18a06af
commit
13c23cd18b
3 changed files with 40 additions and 96 deletions
|
@ -10,9 +10,6 @@
|
|||
*/
|
||||
|
||||
struct edt_ft5x06_platform_data {
|
||||
int irq_pin;
|
||||
int reset_pin;
|
||||
|
||||
/* startup defaults for operational parameters */
|
||||
bool use_parameters;
|
||||
u8 gain;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue