diff mbox

[04/12] ads7846: setting pen_down direction in input

Message ID AANLkTik1jPRkifN4Utuow2rztKrwZKOSx-hwg97sw_Wq@mail.gmail.com (mailing list archive)
State Superseded
Headers show

Commit Message

Raffaele Recalcati June 7, 2010, 10:15 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/input/touchscreen/ads7846.c
b/drivers/input/touchscreen/ads7846.c
index 532279c..226dbdc 100644
--- a/drivers/input/touchscreen/ads7846.c
+++ b/drivers/input/touchscreen/ads7846.c
@@ -872,6 +872,8 @@  static int __devinit setup_pendown(struct spi_device
*spi, struct ads7846 *ts)
         return err;
     }

+    gpio_direction_input(pdata->gpio_pendown);
+
     ts->gpio_pendown = pdata->gpio_pendown;
     return 0;