提交 173e4d81 编写于 作者: D 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: NDaniel Mack <daniel@zonque.org>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 2d388499
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册