From: broonie@kernel.org (Mark Brown)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] regulator: MT6311: Add support for MT6311 regulator
Date: Mon, 20 Jul 2015 18:31:53 +0100 [thread overview]
Message-ID: <20150720173153.GH11162@sirena.org.uk> (raw)
In-Reply-To: <1437377793-31558-3-git-send-email-henryc.chen@mediatek.com>
On Mon, Jul 20, 2015 at 03:36:33PM +0800, Henry Chen wrote:
> @@ -460,6 +460,15 @@ config REGULATOR_MT6397
> This driver supports the control of different power rails of device
> through regulator interface.
>
> +config REGULATOR_MT6311
> + tristate "MediaTek MT6311 PMIC"
Please keep these files sorted, MT6311 should be before MT6397.
> +static struct mt6311_pdata *mt6311_parse_regulators_dt(
> + struct device *dev)
> +{
> + struct mt6311_pdata *pdata;
> + struct device_node *node;
> + int i, num, n;
> +
> + node = of_get_child_by_name(dev->of_node, "regulators");
> + if (!node) {
> + dev_err(dev, "regulators node not found\n");
> + return ERR_PTR(-ENODEV);
> + }
> +
> + num = of_regulator_match(dev, node, mt6311_matches,
> + ARRAY_SIZE(mt6311_matches));
Please convert this to use the modern method of specifying the regulator
DT bindings by providing of_match and regulators_node in the
regulator_desc so the core does the mapping for yand regulators_node in
the regulator_desc so the core does the mapping for yand regulators_node
in the regulator_desc so the core does the mapping for yand
regulators_node in the regulator_desc so the core does the mapping for
you and you can delete the DT handling code.
Otherwise this driver looks good.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150720/2dd86787/attachment.sig>
next prev parent reply other threads:[~2015-07-20 17:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-20 7:36 regulator: MT6311: Add support for MT6311 regulator Henry Chen
2015-07-20 7:36 ` [PATCH 1/2] dt-bindings: Add document " Henry Chen
2015-07-20 17:28 ` Mark Brown
2015-07-21 9:46 ` Henry Chen
2015-07-20 7:36 ` [PATCH 2/2] regulator: MT6311: Add support " Henry Chen
2015-07-20 17:31 ` Mark Brown [this message]
2015-07-21 9:52 ` Henry Chen
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=20150720173153.GH11162@sirena.org.uk \
--to=broonie@kernel.org \
--cc=linux-arm-kernel@lists.infradead.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