From: Chanwoo Choi <cw00.choi@samsung.com>
To: Roger Quadros <rogerq@ti.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 16:24:08 +0900 [thread overview]
Message-ID: <55CC4618.2070007@samsung.com> (raw)
In-Reply-To: <55CC4211.7030804@ti.com>
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.
Thanks,
Chanwoo Choi
next prev parent reply other threads:[~2015-08-13 7:24 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 [this message]
2015-08-13 7:26 ` Roger Quadros
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=55CC4618.2070007@samsung.com \
--to=cw00.choi@samsung.com \
--cc=jim.epost@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rogerq@ti.com \
--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