From: Mark Brown <broonie@kernel.org>
To: Saurabh Sengar <saurabh.truth@gmail.com>
Cc: lgirdwood@gmail.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] regulator: of: simplifing the parsing code
Date: Sat, 21 Nov 2015 13:22:02 +0000 [thread overview]
Message-ID: <20151121132202.GE26072@sirena.org.uk> (raw)
In-Reply-To: <1448006247-4749-1-git-send-email-saurabh.truth@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 991 bytes --]
On Fri, Nov 20, 2015 at 01:27:27PM +0530, Saurabh Sengar wrote:
> in case of_property_read_u32 fails, it keeps the parameter unchanged
> so no need to test if its success and then assign the value
On the other hand the current code doesn't require us to know that
detail... it's really not entirely clear to me that this is a great
win.
> I also have concern related to how we are passing 'regulator-mode' and
> 'regulator-initial-mode'. Currently this require a extra function to be
> set in 'of_map_mode', which can be avoided.
> These two parameters can be set directly from the device tree as in below patch:
> https://lkml.org/lkml/2014/1/16/263
No, they can't - the values we set for modes in the DT are defined per
regulator and we need to translate these into the regulator API
definitions.
> + of_property_read_u32(np, "regulator-microvolt-offset",
> + &constraints->uV_offset);
The indentation for these is very strange - the second line is indented
a really long way.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2015-11-21 13:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-20 7:57 Saurabh Sengar
2015-11-21 13:22 ` Mark Brown [this message]
2015-11-21 14:11 ` Saurabh Sengar
2015-11-22 12:59 ` 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=20151121132202.GE26072@sirena.org.uk \
--to=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=saurabh.truth@gmail.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
all inboxes | Powered by JetHome®