From: Dmitry Torokhov Date: Tue, 21 Feb 2017 07:13:45 +0000 (-0800) Subject: Input: eeti_ts - use gpio_get_value_cansleep X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=173e4d81f76c948acbb49f3900f3ca3f279c5c2a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Dmitry Torokhov --- 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)