From: Graeme Gregory <gg@slimlogic.co.uk>
To: Axel Lin <axel.lin@ingics.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>,
Liam Girdwood <lgirdwood@gmail.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] regulator: palmas: Use of_property_read_bool to read "ti,warm-reset" DT property
Date: Tue, 12 Mar 2013 16:10:42 +0000 [thread overview]
Message-ID: <513F5382.8080708@slimlogic.co.uk> (raw)
In-Reply-To: <1363102819.3160.1.camel@phoenix>
Thanks for catching that typo
Acked-by: Graeme Gregory <gg@slimlogic.co.uk>
On 12/03/13 15:40, Axel Lin wrote:
> It does not make sense to assign return value of of_property_read_u32() to
> pdata->reg_init[idx]->warm_reset. Use of_property_read_bool() to read
> "ti,warm-reset" DT property instead which will return correct setting
> for pdata->reg_init[idx]->warm_reset.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
> drivers/regulator/palmas-regulator.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c
> index b2b1baa..a9b558e 100644
> --- a/drivers/regulator/palmas-regulator.c
> +++ b/drivers/regulator/palmas-regulator.c
> @@ -554,8 +554,8 @@ static void palmas_dt_to_pdata(struct device *dev,
> sizeof(struct palmas_reg_init), GFP_KERNEL);
>
> pdata->reg_init[idx]->warm_reset =
> - of_property_read_u32(palmas_matches[idx].of_node,
> - "ti,warm-reset", &prop);
> + of_property_read_bool(palmas_matches[idx].of_node,
> + "ti,warm-reset");
>
> pdata->reg_init[idx]->roof_floor =
> of_property_read_bool(palmas_matches[idx].of_node,
next prev parent reply other threads:[~2013-03-12 16:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-12 15:40 [PATCH] regulator: palmas: Use of_property_read_bool to read "ti,warm-reset" DT property Axel Lin
2013-03-12 16:10 ` Graeme Gregory [this message]
2013-03-12 18:16 ` Mark Brown
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=513F5382.8080708@slimlogic.co.uk \
--to=gg@slimlogic.co.uk \
--cc=axel.lin@ingics.com \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.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