]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
Input: eeti_ts - use gpio_get_value_cansleep
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 21 Feb 2017 07:13:45 +0000 (23:13 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 3 Apr 2017 23:24:33 +0000 (16:24 -0700)
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>
drivers/input/touchscreen/eeti_ts.c

index ac78ac6d4936ac9d06bf8855e87e8bc40a8fd958..fc61dbea4736ba8556d8e7c0f3de9f11eaac857c 100644 (file)
@@ -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)