From: matthias.bgg@kernel.org
To: lee.jones@linaro.org, robh+dt@kernel.org, matthias.bgg@gmail.com,
lgirdwood@gmail.com, broonie@kernel.org
Cc: devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Matthias Brugger <mbrugger@suse.com>
Subject: [PATCH 4/7] regulator: mediatek: Add regulators_node to description
Date: Fri, 12 Mar 2021 15:55:42 +0100 [thread overview]
Message-ID: <20210312145545.26050-4-matthias.bgg@kernel.org> (raw)
In-Reply-To: <20210312145545.26050-1-matthias.bgg@kernel.org>
From: Matthias Brugger <mbrugger@suse.com>
Define the regulator node under which the regulators are described.
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
---
drivers/regulator/mt6323-regulator.c | 3 +++
drivers/regulator/mt6358-regulator.c | 4 ++++
drivers/regulator/mt6397-regulator.c | 10 +++-------
3 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/drivers/regulator/mt6323-regulator.c b/drivers/regulator/mt6323-regulator.c
index ff9016170db37..8b22ded43ab8a 100644
--- a/drivers/regulator/mt6323-regulator.c
+++ b/drivers/regulator/mt6323-regulator.c
@@ -42,6 +42,7 @@ struct mt6323_regulator_info {
.desc = { \
.name = #vreg, \
.of_match = of_match_ptr(match), \
+ .regulators_node = of_match_ptr("mt6323regulator"), \
.ops = &mt6323_volt_range_ops, \
.type = REGULATOR_VOLTAGE, \
.id = MT6323_ID_##vreg, \
@@ -66,6 +67,7 @@ struct mt6323_regulator_info {
.desc = { \
.name = #vreg, \
.of_match = of_match_ptr(match), \
+ .regulators_node = of_match_ptr("mt6323regulator"), \
.ops = &mt6323_volt_table_ops, \
.type = REGULATOR_VOLTAGE, \
.id = MT6323_ID_##vreg, \
@@ -88,6 +90,7 @@ struct mt6323_regulator_info {
.desc = { \
.name = #vreg, \
.of_match = of_match_ptr(match), \
+ .regulators_node = of_match_ptr("mt6323regulator"), \
.ops = &mt6323_volt_fixed_ops, \
.type = REGULATOR_VOLTAGE, \
.id = MT6323_ID_##vreg, \
diff --git a/drivers/regulator/mt6358-regulator.c b/drivers/regulator/mt6358-regulator.c
index 13cb6ac9a8929..f5c478d7baaf2 100644
--- a/drivers/regulator/mt6358-regulator.c
+++ b/drivers/regulator/mt6358-regulator.c
@@ -44,6 +44,7 @@ struct mt6358_regulator_info {
.desc = { \
.name = #vreg, \
.of_match = of_match_ptr(match), \
+ .regulators_node = of_match_ptr("mt6358regulator"), \
.ops = &mt6358_volt_range_ops, \
.type = REGULATOR_VOLTAGE, \
.id = MT6358_ID_##vreg, \
@@ -74,6 +75,7 @@ struct mt6358_regulator_info {
.desc = { \
.name = #vreg, \
.of_match = of_match_ptr(match), \
+ .regulators_node = of_match_ptr("mt6358regulator"), \
.ops = &mt6358_volt_table_ops, \
.type = REGULATOR_VOLTAGE, \
.id = MT6358_ID_##vreg, \
@@ -99,6 +101,7 @@ struct mt6358_regulator_info {
.desc = { \
.name = #vreg, \
.of_match = of_match_ptr(match), \
+ .regulators_node = of_match_ptr("mt6358regulator"), \
.ops = &mt6358_volt_range_ops, \
.type = REGULATOR_VOLTAGE, \
.id = MT6358_ID_##vreg, \
@@ -124,6 +127,7 @@ struct mt6358_regulator_info {
.desc = { \
.name = #vreg, \
.of_match = of_match_ptr(match), \
+ .regulators_node = of_match_ptr("mt6358regulator"), \
.ops = &mt6358_volt_fixed_ops, \
.type = REGULATOR_VOLTAGE, \
.id = MT6358_ID_##vreg, \
diff --git a/drivers/regulator/mt6397-regulator.c b/drivers/regulator/mt6397-regulator.c
index 0a30df5e414fc..9e8589f773eaa 100644
--- a/drivers/regulator/mt6397-regulator.c
+++ b/drivers/regulator/mt6397-regulator.c
@@ -42,6 +42,7 @@ struct mt6397_regulator_info {
.desc = { \
.name = #vreg, \
.of_match = of_match_ptr(match), \
+ .regulators_node = of_match_ptr("mt6397regulator"), \
.ops = &mt6397_volt_range_ops, \
.type = REGULATOR_VOLTAGE, \
.id = MT6397_ID_##vreg, \
@@ -70,6 +71,7 @@ struct mt6397_regulator_info {
.desc = { \
.name = #vreg, \
.of_match = of_match_ptr(match), \
+ .regulators_node = of_match_ptr("mt6397regulator"), \
.ops = &mt6397_volt_table_ops, \
.type = REGULATOR_VOLTAGE, \
.id = MT6397_ID_##vreg, \
@@ -89,6 +91,7 @@ struct mt6397_regulator_info {
.desc = { \
.name = #vreg, \
.of_match = of_match_ptr(match), \
+ .regulators_node = of_match_ptr("mt6397regulator"), \
.ops = &mt6397_volt_fixed_ops, \
.type = REGULATOR_VOLTAGE, \
.id = MT6397_ID_##vreg, \
@@ -396,16 +399,9 @@ static const struct platform_device_id mt6397_platform_ids[] = {
};
MODULE_DEVICE_TABLE(platform, mt6397_platform_ids);
-static const struct of_device_id mt6397_of_match[] = {
- { .compatible = "mediatek,mt6397-regulator", },
- { /* sentinel */ },
-};
-MODULE_DEVICE_TABLE(of, mt6397_of_match);
-
static struct platform_driver mt6397_regulator_driver = {
.driver = {
.name = "mt6397-regulator",
- .of_match_table = of_match_ptr(mt6397_of_match),
},
.probe = mt6397_regulator_probe,
.id_table = mt6397_platform_ids,
--
2.30.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-03-12 14:58 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-12 14:55 [PATCH 1/7] dt-bindings: mfd: mediatek: Fix regulator description matthias.bgg
2021-03-12 14:55 ` [PATCH 2/7] dt-bindigns: regulator: mtk: Drop unneeded compatible matthias.bgg
2021-03-18 14:11 ` Enric Balletbo Serra
2021-03-24 16:16 ` Rob Herring
2021-03-12 14:55 ` [PATCH 3/7] mfd: mt6397: Drop of_compatible for regulator matthias.bgg
2021-03-23 9:05 ` Lee Jones
2021-03-12 14:55 ` matthias.bgg [this message]
2021-03-18 13:31 ` [PATCH 4/7] regulator: mediatek: Add regulators_node to description Mark Brown
2021-03-12 14:55 ` [PATCH 5/7] arm: dts: mt6323: Drop OF compatible matthias.bgg
2021-03-12 14:55 ` [PATCH 6/7] arm64: dts: mt6358: Drop compatible for regulators matthias.bgg
2021-03-12 14:55 ` [PATCH 7/7] arm64: dts: mt8173: Drop compatible for mt6397 matthias.bgg
2021-03-18 14:14 ` Enric Balletbo Serra
2021-03-24 16:12 ` [PATCH 1/7] dt-bindings: mfd: mediatek: Fix regulator description Rob Herring
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=20210312145545.26050-4-matthias.bgg@kernel.org \
--to=matthias.bgg@kernel.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=lee.jones@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=mbrugger@suse.com \
--cc=robh+dt@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;
as well as URLs for NNTP newsgroup(s).