From: Priit Laes <plaes-q/aMd4JkU83YtjvyW6yDsg@public.gmane.org>
To: wens-jdAy2FN1RRM@public.gmane.org,
Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
Liam Girdwood <lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Maxime Ripard
<maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: [PATCH resend v2 4/9] regulator: axp20x: support AXP809 variant
Date: Tue, 29 Mar 2016 12:51:30 +0300 [thread overview]
Message-ID: <1459245090.14208.1.camel@plaes.org> (raw)
In-Reply-To: <1459243352-23344-5-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
On Tue, 2016-03-29 at 17:22 +0800, Chen-Yu Tsai wrote:
> The X-Powers AXP809 PMIC has a similar set of regulators as the
> AXP221,
> though a few LDOs were removed, and a new switch output added. Like
> the
> AXP221, AXP809 also has DC1SW and DC5LDO, which are internally
> chained
> to DCDC1 and DCDC5, respectively.
>
> Add support for this new variant. Also remove the "axp22x_" prefix
> from
> DC1SW/DC5LDO supply handling code, as the AXP809 uses it as well.
>
> Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
> ---
> drivers/regulator/axp20x-regulator.c | 119
> ++++++++++++++++++++++++++---------
> 1 file changed, 90 insertions(+), 29 deletions(-)
>
[...]
> @@ -420,17 +481,17 @@ static int axp20x_regulator_probe(struct
> platform_device *pdev)
> /*
> * Save AXP22X DCDC1 / DCDC5 regulator names for
> later.
> */
You should probably update this comment too, due to changes below.
> - if (regulators == axp22x_regulators) {
> - /* Can we use rdev->constraints->name
> instead? */
> - if (i == AXP22X_DCDC1)
> - of_property_read_string(rdev
> ->dev.of_node,
> - "regulator
> -name",
> - &axp22x_dc1_
> name);
> - else if (i == AXP22X_DCDC5)
> - of_property_read_string(rdev
> ->dev.of_node,
> - "regulator
> -name",
> - &axp22x_dc5_
> name);
> - }
> + if ((regulators == axp22x_regulators && i ==
> AXP22X_DCDC1) ||
> + (regulators == axp809_regulators && i ==
> AXP809_DCDC1))
> + of_property_read_string(rdev->dev.of_node,
> + "regulator-name",
> + &dcdc1_name);
> +
> + if ((regulators == axp22x_regulators && i ==
> AXP22X_DCDC5) ||
> + (regulators == axp809_regulators && i ==
> AXP809_DCDC5))
> + of_property_read_string(rdev->dev.of_node,
> + "regulator-name",
> + &dcdc5_name);
> }
>
> return 0;
> --
> 2.7.0
>
next prev parent reply other threads:[~2016-03-29 9:51 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-29 9:22 [PATCH resend v2 0/9] mfd: axp20x: Add support for AXP809 PMIC Chen-Yu Tsai
[not found] ` <1459243352-23344-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
2016-03-29 9:22 ` [PATCH resend v2 1/9] MAINTAINERS: Add entry for X-Powers AXP family PMIC drivers Chen-Yu Tsai
[not found] ` <1459243352-23344-2-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
2016-04-25 16:27 ` Lee Jones
2016-03-29 9:22 ` [PATCH resend v2 2/9] mfd: axp20x: Add bindings for AXP809 PMIC Chen-Yu Tsai
[not found] ` <1459243352-23344-3-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
2016-04-11 8:24 ` Lee Jones
2016-03-29 9:22 ` [PATCH resend v2 3/9] mfd: axp20x: Add support " Chen-Yu Tsai
[not found] ` <1459243352-23344-4-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
2016-04-11 8:24 ` Lee Jones
2016-04-22 6:58 ` Chen-Yu Tsai
2016-03-29 9:22 ` [PATCH resend v2 4/9] regulator: axp20x: support AXP809 variant Chen-Yu Tsai
[not found] ` <1459243352-23344-5-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
2016-03-29 9:51 ` Priit Laes [this message]
2016-03-29 16:09 ` Mark Brown
2016-03-29 9:22 ` [PATCH resend v2 5/9] ARM: dts: sunxi: Add dtsi file for AXP809 PMIC Chen-Yu Tsai
2016-03-29 9:22 ` [PATCH resend v2 6/9] ARM: dts: sun9i: a80-optimus: Add AXP809 PMIC device node and regulators Chen-Yu Tsai
2016-03-29 9:22 ` [PATCH resend v2 7/9] ARM: dts: sun9i: cubieboard4: " Chen-Yu Tsai
2016-03-29 9:22 ` [PATCH resend v2 8/9] ARM: dts: sun9i: a80-optimus: Disable dummy regulators vcc3v0, vcc3v3, vcc5v0 Chen-Yu Tsai
2016-03-29 9:22 ` [PATCH resend v2 9/9] ARM: dts: sun9i: cubieboard4: " Chen-Yu Tsai
2016-04-11 0:27 ` [PATCH resend v2 0/9] mfd: axp20x: Add support for AXP809 PMIC Chen-Yu Tsai
[not found] ` <CAGb2v64fU+n-mrVk=+ox5e-np_oK3ZiVk-YMknriGQsnxOVBvQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-11 7:59 ` Lee Jones
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=1459245090.14208.1.camel@plaes.org \
--to=plaes-q/amd4jku83ytjvyw6ydsg@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
--cc=maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
--cc=wens-jdAy2FN1RRM@public.gmane.org \
/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;
as well as URLs for NNTP newsgroup(s).