From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756614AbbGGAb2 (ORCPT ); Mon, 6 Jul 2015 20:31:28 -0400 Received: from mail-ie0-f182.google.com ([209.85.223.182]:33530 "EHLO mail-ie0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756266AbbGGAaX (ORCPT ); Mon, 6 Jul 2015 20:30:23 -0400 From: Dmitry Torokhov To: linux-input@vger.kernel.org, Roger Quadros Cc: Jianchun Bian , linux-kernel@vger.kernel.org Subject: [PATCH 3/6] Input: pixcir_i2c_ts - allow using with GPIO expanders Date: Mon, 6 Jul 2015 17:30:08 -0700 Message-Id: <1436229011-29655-3-git-send-email-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 2.4.3.573.g4eafbef In-Reply-To: <1436229011-29655-1-git-send-email-dmitry.torokhov@gmail.com> References: <1436229011-29655-1-git-send-email-dmitry.torokhov@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Dmitry Torokhov --- drivers/input/touchscreen/pixcir_i2c_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/pixcir_i2c_ts.c b/drivers/input/touchscreen/pixcir_i2c_ts.c index 9093aa9..8965d7c 100644 --- a/drivers/input/touchscreen/pixcir_i2c_ts.c +++ b/drivers/input/touchscreen/pixcir_i2c_ts.c @@ -171,7 +171,7 @@ static irqreturn_t pixcir_ts_isr(int irq, void *dev_id) /* report it */ pixcir_ts_report(tsdata, &report); - if (gpiod_get_value(tsdata->gpio_attb)) { + if (gpiod_get_value_cansleep(tsdata->gpio_attb)) { if (report.num_touches) { /* * Last report with no finger up? -- 2.4.3.573.g4eafbef