public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] extcon: palmas: Fix build break due to devm_gpiod_get_optional API change
@ 2015-08-13  0:29 Chanwoo Choi
  2015-08-13  7:06 ` Roger Quadros
  2015-08-13  7:14 ` Uwe Kleine-König
  0 siblings, 2 replies; 6+ messages in thread
From: Chanwoo Choi @ 2015-08-13  0:29 UTC (permalink / raw)
  To: linux-kernel; +Cc: cw00.choi, sfr, u.kleine-koenig, rogerq

Commit b17d1bf16cc7 ("gpio: make flags mandatory for gpiod_get functions")
changes the prototype of devm_gpiod_get_optional() API which should include
the falgs mandatory.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
---
 drivers/extcon/extcon-palmas.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/extcon/extcon-palmas.c b/drivers/extcon/extcon-palmas.c
index 662e91778cb0..308928d44ead 100644
--- a/drivers/extcon/extcon-palmas.c
+++ b/drivers/extcon/extcon-palmas.c
@@ -208,7 +208,8 @@ static int palmas_usb_probe(struct platform_device *pdev)
 			palmas_usb->wakeup = pdata->wakeup;
 	}
 
-	palmas_usb->id_gpiod = devm_gpiod_get_optional(&pdev->dev, "id");
+	palmas_usb->id_gpiod = devm_gpiod_get_optional(&pdev->dev, "id",
+							GPIOD_IN);
 	if (IS_ERR(palmas_usb->id_gpiod)) {
 		dev_err(&pdev->dev, "failed to get id gpio\n");
 		return PTR_ERR(palmas_usb->id_gpiod);
-- 
1.8.5.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-08-13  8:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-13  0:29 [PATCH] extcon: palmas: Fix build break due to devm_gpiod_get_optional API change Chanwoo Choi
2015-08-13  7:06 ` Roger Quadros
2015-08-13  7:24   ` Chanwoo Choi
2015-08-13  7:26     ` Roger Quadros
2015-08-13  7:14 ` Uwe Kleine-König
2015-08-13  8:15   ` Chanwoo Choi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox