[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1415032350-8459-4-git-send-email-balbi@ti.com>
Date: Mon, 3 Nov 2014 10:32:29 -0600
From: Felipe Balbi <balbi@...com>
To: <myungjoo.ham@...sung.com>, <cw00.choi@...sung.com>
CC: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux OMAP Mailing List <linux-omap@...r.kernel.org>,
<nsekhar@...com>, <grant.likely@...aro.org>,
George Cherian <george.cherian@...com>,
Felipe Balbi <balbi@...com>
Subject: [PATCH 3/4] extcon: gpio: Always use gpio_get_value_cansleep
From: George Cherian <george.cherian@...com>
Some gpio's can sleep while reading, so always use gpio_get_value_cansleep
to get data. This fixes warning from gpiolib due to wrong API usage.
Reviewed-by: Roger Quadros <rogerq@...com>
Signed-off-by: George Cherian <george.cherian@...com>
Signed-off-by: Sekhar Nori <nsekhar@...com>
Signed-off-by: Felipe Balbi <balbi@...com>
---
drivers/extcon/extcon-gpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/extcon/extcon-gpio.c b/drivers/extcon/extcon-gpio.c
index 9571e1f..7191d28 100644
--- a/drivers/extcon/extcon-gpio.c
+++ b/drivers/extcon/extcon-gpio.c
@@ -51,7 +51,7 @@ static void gpio_extcon_work(struct work_struct *work)
container_of(to_delayed_work(work), struct gpio_extcon_data,
work);
- state = gpiod_get_value(data->gpiod);
+ state = gpiod_get_value_cansleep(data->gpiod);
extcon_set_state(data->edev, state);
}
--
2.1.0.GIT
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists