From: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
To: Chanwoo Choi <cw00.choi@samsung.com>
Cc: linux-kernel@vger.kernel.org, myungjoo.ham@samsung.com,
kyungmin.park@samsung.com, Mark Brown <broonie@kernel.org>,
Graeme Gregory <gg@slimlogic.co.uk>,
Kishon Vijay Abraham I <kishon@ti.com>,
Krzysztof Kozlowski <k.kozlowski@samsung.com>
Subject: Re: [PATCH] extcon: Set parent device of extcon device using prameter of devm_extcon_dev_allocate
Date: Fri, 30 May 2014 10:36:38 +0100 [thread overview]
Message-ID: <20140530093638.GA11951@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <1401414099-10937-1-git-send-email-cw00.choi@samsung.com>
On Fri, May 30, 2014 at 10:41:39AM +0900, Chanwoo Choi wrote:
> This patch set the parent device of extcon device using first parameter of
> devm_extco_dev_allocate() to remove duplicate code on all of extcon provider
> drivers.
>
> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
> Reported-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
> Cc: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
> Cc: Mark Brown <broonie@kernel.org>
> Cc: Graeme Gregory <gg@slimlogic.co.uk>
> Cc: Kishon Vijay Abraham I <kishon@ti.com>
> Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>
> ---
> drivers/extcon/extcon-adc-jack.c | 1 -
> drivers/extcon/extcon-arizona.c | 1 -
> drivers/extcon/extcon-class.c | 2 ++
> drivers/extcon/extcon-gpio.c | 1 -
> drivers/extcon/extcon-max77693.c | 1 -
> drivers/extcon/extcon-max8997.c | 1 -
> drivers/extcon/extcon-palmas.c | 1 -
> 7 files changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/extcon/extcon-adc-jack.c b/drivers/extcon/extcon-adc-jack.c
> index e18f95b..d860229 100644
> --- a/drivers/extcon/extcon-adc-jack.c
> +++ b/drivers/extcon/extcon-adc-jack.c
> @@ -112,7 +112,6 @@ static int adc_jack_probe(struct platform_device *pdev)
> dev_err(&pdev->dev, "failed to allocate extcon device\n");
> return -ENOMEM;
> }
> - data->edev->dev.parent = &pdev->dev;
> data->edev->name = pdata->name;
>
> /* Check the length of array and set num_cables */
> diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c
> index c634796..d9bd3c3 100644
> --- a/drivers/extcon/extcon-arizona.c
> +++ b/drivers/extcon/extcon-arizona.c
> @@ -1165,7 +1165,6 @@ static int arizona_extcon_probe(struct platform_device *pdev)
> return -ENOMEM;
> }
> info->edev->name = "Headset Jack";
> - info->edev->dev.parent = arizona->dev;
>
> ret = devm_extcon_dev_register(&pdev->dev, info->edev);
This changes the parent device for the Arizona stuff, I don't
think this is a problem but I should probably test here first.
Thanks,
Charles
next prev parent reply other threads:[~2014-05-30 9:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-30 1:41 [PATCH] extcon: Set parent device of extcon device using prameter of devm_extcon_dev_allocate Chanwoo Choi
2014-05-30 9:36 ` Charles Keepax [this message]
2014-05-30 9:49 ` Chanwoo Choi
2014-05-30 12:43 ` Charles Keepax
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=20140530093638.GA11951@opensource.wolfsonmicro.com \
--to=ckeepax@opensource.wolfsonmicro.com \
--cc=broonie@kernel.org \
--cc=cw00.choi@samsung.com \
--cc=gg@slimlogic.co.uk \
--cc=k.kozlowski@samsung.com \
--cc=kishon@ti.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
/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