mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
Cc: arnd@arndb.de, linus.walleij@stericsson.com,
	srinidhi.kasagar@stericsson.com, broonie@linaro.org,
	Lee Jones <lee.jones@linaro.org>
Subject: [PATCH 04/10] ARM: ux500: Provide the supply regulator through consumers
Date: Fri,  7 Jun 2013 17:11:22 +0100	[thread overview]
Message-ID: <1370621488-18130-5-git-send-email-lee.jones@linaro.org> (raw)
In-Reply-To: <1370621488-18130-1-git-send-email-lee.jones@linaro.org>

The supply name is now provided through the regulator descriptor, so
instead of applying a supply_regulator name for each subordinate
regulator requiring it, we can just register a link between the chip
and supply name to achieve the same thing. This reduces platform data
code and standardises the semantics between ATAG and DT boots.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
 arch/arm/mach-ux500/board-mop500-regulators.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/arm/mach-ux500/board-mop500-regulators.c b/arch/arm/mach-ux500/board-mop500-regulators.c
index 0dc44c6..70111d5 100644
--- a/arch/arm/mach-ux500/board-mop500-regulators.c
+++ b/arch/arm/mach-ux500/board-mop500-regulators.c
@@ -374,7 +374,6 @@ static struct ab8500_regulator_reg_init ab8500_reg_init[] = {
 static struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS] = {
 	/* supplies to the display/camera */
 	[AB8500_LDO_AUX1] = {
-		.supply_regulator = "ab8500-ext-supply3",
 		.constraints = {
 			.name = "V-DISPLAY",
 			.min_uV = 2800000,
@@ -388,7 +387,6 @@ static struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS] = {
 	},
 	/* supplies to the on-board eMMC */
 	[AB8500_LDO_AUX2] = {
-		.supply_regulator = "ab8500-ext-supply3",
 		.constraints = {
 			.name = "V-eMMC1",
 			.min_uV = 1100000,
@@ -404,7 +402,6 @@ static struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS] = {
 	},
 	/* supply for VAUX3, supplies to SDcard slots */
 	[AB8500_LDO_AUX3] = {
-		.supply_regulator = "ab8500-ext-supply3",
 		.constraints = {
 			.name = "V-MMC-SD",
 			.min_uV = 1100000,
@@ -495,6 +492,7 @@ static struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS] = {
 static struct regulator_consumer_supply ab8500_ext_supply3_consumers[] = {
 	/* SIM supply for 3 V SIM cards */
 	REGULATOR_SUPPLY("vinvsim", "sim-detect.0"),
+	REGULATOR_SUPPLY("vin", "ab8500-regulator.0"),
 };
 
 /* extended configuration for VextSupply2, only used for HREFP_V20 boards */
-- 
1.7.10.4


  parent reply	other threads:[~2013-06-07 16:11 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-07 16:11 [PATCH 00/10] regulator: ab8500-ext: Refactorings Lee Jones
2013-06-07 16:11 ` [PATCH 01/10] ARM: ux500: Add Device Tree nodes for AB8500 External regulators Lee Jones
2013-06-10 15:17   ` Linus Walleij
2013-06-07 16:11 ` [PATCH 02/10] ARM: ux500: Provide a supply name for the AB8500 AUX regulators to use Lee Jones
2013-06-10 15:18   ` Linus Walleij
2013-06-07 16:11 ` [PATCH 03/10] ARM: ux500: Supply external regulator names for Snowball's DT Lee Jones
2013-06-07 16:11 ` Lee Jones [this message]
2013-06-07 16:11 ` [PATCH 05/10] mfd: ab8500-core: Add AB8500 external regulators as MFD devices Lee Jones
2013-06-07 16:11 ` [PATCH 06/10] regulator: ab8500: Ensure AB8500 external registers are probed first Lee Jones
2013-06-07 16:51   ` Mark Brown
2013-06-07 16:11 ` [PATCH 07/10] regulator: ab8500-ext: Provide a set_voltage call-back operation Lee Jones
2013-06-07 16:52   ` Mark Brown
2013-06-07 16:11 ` [PATCH 08/10] regulator: ab8500-ext: Register as a device in its own right Lee Jones
2013-06-11 11:50   ` Mark Brown
2013-06-07 16:11 ` [PATCH 09/10] regulator: ab8500-ext: Enable for Device Tree Lee Jones
2013-06-11 11:52   ` Mark Brown
2013-06-07 16:11 ` [PATCH 10/10] regulator: ab8500: Provide supply names for the AUX regulators Lee Jones
2013-06-10 14:35 ` [PATCH 00/10] regulator: ab8500-ext: Refactorings Linus Walleij
2013-06-10 15:12   ` Lee Jones
2013-06-10 15:25     ` Mark Brown
2013-06-10 15:46       ` Lee Jones
2013-06-10 16:25         ` 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=1370621488-18130-5-git-send-email-lee.jones@linaro.org \
    --to=lee.jones@linaro.org \
    --cc=arnd@arndb.de \
    --cc=broonie@linaro.org \
    --cc=linus.walleij@stericsson.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=srinidhi.kasagar@stericsson.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®