diff mbox

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

Message ID 1276251594-5936-4-git-send-email-lamiaposta71@gmail.com (mailing list archive)
State Changes Requested
Headers show

Commit Message

Raffaele Recalcati June 11, 2010, 10:19 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;
 }