diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-07-06 22:27:00 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-07-12 02:28:20 +0200 |
commit | 127520caebd9ae1b77c7026bf538a81b8fcd19a8 (patch) | |
tree | ee71e9cd79790fdd7ce7d3515b533211f2ed7721 /drivers/input/touchscreen/pixcir_i2c_ts.c | |
parent | Input: pixcir_i2c_ts - switch the device over to gpiod (diff) | |
download | linux-127520caebd9ae1b77c7026bf538a81b8fcd19a8.tar.xz linux-127520caebd9ae1b77c7026bf538a81b8fcd19a8.zip |
Input: pixcir_i2c_ts - allow using with GPIO expanders
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>
Diffstat (limited to 'drivers/input/touchscreen/pixcir_i2c_ts.c')
-rw-r--r-- | drivers/input/touchscreen/pixcir_i2c_ts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/pixcir_i2c_ts.c b/drivers/input/touchscreen/pixcir_i2c_ts.c index 19732b573227..5330c0446540 100644 --- a/drivers/input/touchscreen/pixcir_i2c_ts.c +++ b/drivers/input/touchscreen/pixcir_i2c_ts.c @@ -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? |