diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-02-20 23:13:45 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-04-03 16:24:33 -0700 |
commit | 173e4d81f76c948acbb49f3900f3ca3f279c5c2a (patch) | |
tree | 734f7f6b2f73e109eba05efc36249fe2ead3c0cd | |
parent | 2d3884998945cf3f995e9c2e0f157b59f4ec3e86 (diff) | |
download | linux-173e4d81f76c948acbb49f3900f3ca3f279c5c2a.tar.bz2 |
Input: eeti_ts - use gpio_get_value_cansleep
We are reading GPIO state in a non-atomic context (workqueue), so we can
use "cansleep" variant, and thus make the driver available on systems where
GPIO controllers require sleeping when reading GPIO state.
Reviewed-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r-- | drivers/input/touchscreen/eeti_ts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/eeti_ts.c b/drivers/input/touchscreen/eeti_ts.c index ac78ac6d4936..fc61dbea4736 100644 --- a/drivers/input/touchscreen/eeti_ts.c +++ b/drivers/input/touchscreen/eeti_ts.c @@ -63,7 +63,7 @@ struct eeti_ts { static inline int eeti_ts_irq_active(struct eeti_ts *eeti) { - return gpio_get_value(eeti->irq_gpio) == eeti->irq_active_high; + return gpio_get_value_cansleep(eeti->irq_gpio) == eeti->irq_active_high; } static void eeti_ts_read(struct work_struct *work) |