Commit 173e4d81 authored by Dmitry Torokhov's avatar Dmitry Torokhov

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: default avatarDaniel Mack <daniel@zonque.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 2d388499
...@@ -63,7 +63,7 @@ struct eeti_ts { ...@@ -63,7 +63,7 @@ struct eeti_ts {
static inline int eeti_ts_irq_active(struct eeti_ts *eeti) 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) static void eeti_ts_read(struct work_struct *work)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment