]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Input: pixcir_i2c_ts - allow using with GPIO expanders
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 6 Jul 2015 20:27:00 +0000 (13:27 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 12 Jul 2015 00:28:20 +0000 (17:28 -0700)
We are using threaded interrupt handler and thus are allowed to sleep.
Let's switch over to gpiod_get_value_cansleep() so that we do not get
ugly warnings in case GPIO controller might sleep when accessing GPIO.

Acked-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/pixcir_i2c_ts.c

index 19732b573227d11a90833a1da663b7742f33388b..5330c044654008fd8ab6bc3af625a53cdd722877 100644 (file)
@@ -171,7 +171,7 @@ static irqreturn_t pixcir_ts_isr(int irq, void *dev_id)
                /* report it */
                pixcir_ts_report(tsdata, &report);
 
-               if (gpiod_get_value(tsdata->gpio_attb)) {
+               if (gpiod_get_value_cansleep(tsdata->gpio_attb)) {
                        if (report.num_touches) {
                                /*
                                 * Last report with no finger up?