浏览代码

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>
Dmitry Torokhov 8 年之前
父节点
当前提交
173e4d81f7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/input/touchscreen/eeti_ts.c

+ 1 - 1
drivers/input/touchscreen/eeti_ts.c

@@ -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)