public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Roger Quadros <rogerq@ti.com>
To: Chanwoo Choi <cw00.choi@samsung.com>
Cc: <linux-kernel@vger.kernel.org>, <sfr@canb.auug.org.au>,
	<u.kleine-koenig@pengutronix.de>, <jim.epost@gmail.com>
Subject: Re: [PATCH] extcon: palmas: Fix build break due to devm_gpiod_get_optional API change
Date: Thu, 13 Aug 2015 10:26:02 +0300	[thread overview]
Message-ID: <55CC468A.4010301@ti.com> (raw)
In-Reply-To: <55CC4618.2070007@samsung.com>

On 13/08/15 10:24, Chanwoo Choi wrote:
> 
> On 08/13/2015 04:06 PM, Roger Quadros wrote:
>> Hi Chanwoo,
>>
>> On 13/08/15 03:29, Chanwoo Choi wrote:
>>> 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.
>>
>> s/falgs/flags
>>
>>>
>>> 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);
>>>
>>
>> Can you please include the following headers in this patch?
>>
>> #include <linux/gpio.h>
>> #include <linux/gpio/consumer.h>
> 
> I think that extcon-palmas need only "#include <linux/gpio/consumer.h>"
> because of of_gpio.h file already include the gpio.h.

OK with me.

cheers,
-roger

  reply	other threads:[~2015-08-13  7:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2015-08-13  7:14 ` Uwe Kleine-König
2015-08-13  8:15   ` Chanwoo Choi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55CC468A.4010301@ti.com \
    --to=rogerq@ti.com \
    --cc=cw00.choi@samsung.com \
    --cc=jim.epost@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sfr@canb.auug.org.au \
    --cc=u.kleine-koenig@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox