浏览代码

Input: pixcir_i2c_ts - allow using with GPIO expanders

We are using threaded interrupt handler and thus are allowed to sleep.
Let's switch over to gpiod_get_value_cansleep() so that we do not get
ugly warnings in case GPIO controller might sleep when accessing GPIO.

Acked-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Dmitry Torokhov 10 年之前
父节点
当前提交
127520caeb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/input/touchscreen/pixcir_i2c_ts.c

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

@@ -171,7 +171,7 @@ static irqreturn_t pixcir_ts_isr(int irq, void *dev_id)
 		/* report it */
 		/* report it */
 		pixcir_ts_report(tsdata, &report);
 		pixcir_ts_report(tsdata, &report);
 
 
-		if (gpiod_get_value(tsdata->gpio_attb)) {
+		if (gpiod_get_value_cansleep(tsdata->gpio_attb)) {
 			if (report.num_touches) {
 			if (report.num_touches) {
 				/*
 				/*
 				 * Last report with no finger up?
 				 * Last report with no finger up?