]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Input: zforce - don't invert the interrupt GPIO
authorDirk Behme <dirk.behme@de.bosch.com>
Mon, 20 Jul 2015 16:50:37 +0000 (09:50 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 20 Jul 2015 16:57:19 +0000 (09:57 -0700)
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>
drivers/input/touchscreen/zforce_ts.c

index d00e1e33b657659cc0842f39ae398e92435647a1..0aa934c3540efb6e0636b7d9b5870da769e7d67c 100644 (file)
@@ -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,