summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDirk Behme <dirk.behme@de.bosch.com>2015-07-20 09:50:37 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-07-20 09:57:19 -0700
commitdd1b85dc446b7cfaeaa7e250d2ff2acc44a0d51d (patch)
tree2b89ee07b9cd0ec3e9dfeae1fae93b3fa5786958 /drivers
parent800e3b9a68011c4124f380d50e2117523c41a843 (diff)
Input: zforce - don't invert the interrupt GPIO
Commit 2d53809594af ("Input: zforce_ts - convert to use the gpiod interface") converted this driver to use the gpiod functions. These functions take the active low property into account, so we don't have to invert the result of gpiod_get_value_cansleep(). This has been missed in that commit. Fix it. Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/touchscreen/zforce_ts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/zforce_ts.c b/drivers/input/touchscreen/zforce_ts.c
index d00e1e33b657..0aa934c3540e 100644
--- a/drivers/input/touchscreen/zforce_ts.c
+++ b/drivers/input/touchscreen/zforce_ts.c
@@ -510,7 +510,7 @@ static irqreturn_t zforce_irq_thread(int irq, void *dev_id)
if (!ts->suspending && device_may_wakeup(&client->dev))
pm_stay_awake(&client->dev);
- while (!gpiod_get_value_cansleep(ts->gpio_int)) {
+ while (gpiod_get_value_cansleep(ts->gpio_int)) {
ret = zforce_read_packet(ts, payload_buffer);
if (ret < 0) {
dev_err(&client->dev,