* [PATCH] ARM: mach-pxa: Use REGULATOR_SUPPLY macro
@ 2012-05-08 8:25 Axel Lin
2012-05-08 9:23 ` Robert Jarzmik
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Axel Lin @ 2012-05-08 8:25 UTC (permalink / raw)
To: linux-arm-kernel
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Eric Miao <eric.y.miao@gmail.com>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: Philipp Zabel <philipp.zabel@gmail.com>
Cc: Paul Parsons <lost.distance@yahoo.com>
Cc: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Cc: Marek Vasut <marek.vasut@gmail.com>
---
arch/arm/mach-pxa/balloon3.c | 4 +---
arch/arm/mach-pxa/cm-x300.c | 4 +---
arch/arm/mach-pxa/em-x270.c | 5 +----
arch/arm/mach-pxa/hx4700.c | 13 ++++---------
arch/arm/mach-pxa/magician.c | 8 ++------
arch/arm/mach-pxa/mioa701.c | 4 +---
arch/arm/mach-pxa/palm27x.c | 4 +---
arch/arm/mach-pxa/spitz.c | 4 +---
arch/arm/mach-pxa/stargate2.c | 5 +----
arch/arm/mach-pxa/vpac270.c | 4 +---
arch/arm/mach-pxa/z2.c | 4 +---
11 files changed, 15 insertions(+), 44 deletions(-)
diff --git a/arch/arm/mach-pxa/balloon3.c b/arch/arm/mach-pxa/balloon3.c
index 7ece2625..9244493 100644
--- a/arch/arm/mach-pxa/balloon3.c
+++ b/arch/arm/mach-pxa/balloon3.c
@@ -729,9 +729,7 @@ static inline void balloon3_nand_init(void) {}
#if defined(CONFIG_REGULATOR_MAX1586) || \
defined(CONFIG_REGULATOR_MAX1586_MODULE)
static struct regulator_consumer_supply balloon3_max1587a_consumers[] = {
- {
- .supply = "vcc_core",
- }
+ REGULATOR_SUPPLY("vcc_core", NULL),
};
static struct regulator_init_data balloon3_max1587a_v3_info = {
diff --git a/arch/arm/mach-pxa/cm-x300.c b/arch/arm/mach-pxa/cm-x300.c
index 3132740..3e4e9fe 100644
--- a/arch/arm/mach-pxa/cm-x300.c
+++ b/arch/arm/mach-pxa/cm-x300.c
@@ -713,9 +713,7 @@ struct da9030_battery_info cm_x300_battery_info = {
};
static struct regulator_consumer_supply buck2_consumers[] = {
- {
- .supply = "vcc_core",
- },
+ REGULATOR_SUPPLY("vcc_core", NULL),
};
static struct regulator_init_data buck2_data = {
diff --git a/arch/arm/mach-pxa/em-x270.c b/arch/arm/mach-pxa/em-x270.c
index 2771ad4..97f82ad 100644
--- a/arch/arm/mach-pxa/em-x270.c
+++ b/arch/arm/mach-pxa/em-x270.c
@@ -1082,10 +1082,7 @@ static void __init em_x270_userspace_consumers_init(void)
/* DA9030 related initializations */
#define REGULATOR_CONSUMER(_name, _dev_name, _supply) \
static struct regulator_consumer_supply _name##_consumers[] = { \
- { \
- .dev_name = _dev_name, \
- .supply = _supply, \
- }, \
+ REGULATOR_SUPPLY(_supply, _dev_name), \
}
REGULATOR_CONSUMER(ldo3, "reg-userspace-consumer.0", "vcc gps");
diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c
index b83b95a..88f0f51 100644
--- a/arch/arm/mach-pxa/hx4700.c
+++ b/arch/arm/mach-pxa/hx4700.c
@@ -680,12 +680,8 @@ static struct platform_device power_supply = {
*/
static struct regulator_consumer_supply bq24022_consumers[] = {
- {
- .supply = "vbus_draw",
- },
- {
- .supply = "ac_draw",
- },
+ REGULATOR_SUPPLY("vbus_draw", NULL),
+ REGULATOR_SUPPLY("ac_draw", NULL),
};
static struct regulator_init_data bq24022_init_data = {
@@ -764,9 +760,8 @@ static struct platform_device strataflash = {
* Maxim MAX1587A on PI2C
*/
-static struct regulator_consumer_supply max1587a_consumer = {
- .supply = "vcc_core",
-};
+static struct regulator_consumer_supply max1587a_consumer =
+ REGULATOR_SUPPLY("vcc_core", NULL);
static struct regulator_init_data max1587a_v3_info = {
.constraints = {
diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c
index 8de0651..2db697c 100644
--- a/arch/arm/mach-pxa/magician.c
+++ b/arch/arm/mach-pxa/magician.c
@@ -579,12 +579,8 @@ static struct platform_device power_supply = {
*/
static struct regulator_consumer_supply bq24022_consumers[] = {
- {
- .supply = "vbus_draw",
- },
- {
- .supply = "ac_draw",
- },
+ REGULATOR_SUPPLY("vbus_draw", NULL),
+ REGULATOR_SUPPLY("ac_draw", NULL),
};
static struct regulator_init_data bq24022_init_data = {
diff --git a/arch/arm/mach-pxa/mioa701.c b/arch/arm/mach-pxa/mioa701.c
index 061d570..6745149 100644
--- a/arch/arm/mach-pxa/mioa701.c
+++ b/arch/arm/mach-pxa/mioa701.c
@@ -581,9 +581,7 @@ static struct wm97xx_pdata mioa701_wm97xx_pdata = {
* Voltage regulation
*/
static struct regulator_consumer_supply max1586_consumers[] = {
- {
- .supply = "vcc_core",
- }
+ REGULATOR_SUPPLY("vcc_core", NULL),
};
static struct regulator_init_data max1586_v3_info = {
diff --git a/arch/arm/mach-pxa/palm27x.c b/arch/arm/mach-pxa/palm27x.c
index fbc10d7..dad71cf 100644
--- a/arch/arm/mach-pxa/palm27x.c
+++ b/arch/arm/mach-pxa/palm27x.c
@@ -429,9 +429,7 @@ void __init palm27x_power_init(int ac, int usb)
#if defined(CONFIG_REGULATOR_MAX1586) || \
defined(CONFIG_REGULATOR_MAX1586_MODULE)
static struct regulator_consumer_supply palm27x_max1587a_consumers[] = {
- {
- .supply = "vcc_core",
- }
+ REGULATOR_SUPPLY("vcc_core", NULL),
};
static struct regulator_init_data palm27x_max1587a_v3_info = {
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c
index df2ab0f..363d91b 100644
--- a/arch/arm/mach-pxa/spitz.c
+++ b/arch/arm/mach-pxa/spitz.c
@@ -877,9 +877,7 @@ static struct i2c_board_info spitz_i2c_devs[] = {
};
static struct regulator_consumer_supply isl6271a_consumers[] = {
- {
- .supply = "vcc_core",
- }
+ REGULATOR_SUPPLY("vcc_core", NULL),
};
static struct regulator_init_data isl6271a_info[] = {
diff --git a/arch/arm/mach-pxa/stargate2.c b/arch/arm/mach-pxa/stargate2.c
index 4cd645e..30b1b0b 100644
--- a/arch/arm/mach-pxa/stargate2.c
+++ b/arch/arm/mach-pxa/stargate2.c
@@ -151,10 +151,7 @@ static struct platform_device sht15 = {
};
static struct regulator_consumer_supply stargate2_sensor_3_con[] = {
- {
- .dev_name = "sht15",
- .supply = "vcc",
- },
+ REGULATOR_SUPPLY("vcc", "sht15"),
};
enum stargate2_ldos{
diff --git a/arch/arm/mach-pxa/vpac270.c b/arch/arm/mach-pxa/vpac270.c
index c57ab63..e1740ac 100644
--- a/arch/arm/mach-pxa/vpac270.c
+++ b/arch/arm/mach-pxa/vpac270.c
@@ -640,9 +640,7 @@ static inline void vpac270_ide_init(void) {}
#if defined(CONFIG_REGULATOR_MAX1586) || \
defined(CONFIG_REGULATOR_MAX1586_MODULE)
static struct regulator_consumer_supply vpac270_max1587a_consumers[] = {
- {
- .supply = "vcc_core",
- }
+ REGULATOR_SUPPLY("vcc_core", NULL),
};
static struct regulator_init_data vpac270_max1587a_v3_info = {
diff --git a/arch/arm/mach-pxa/z2.c b/arch/arm/mach-pxa/z2.c
index fa86199..b9320cb 100644
--- a/arch/arm/mach-pxa/z2.c
+++ b/arch/arm/mach-pxa/z2.c
@@ -615,9 +615,7 @@ static inline void z2_spi_init(void) {}
#if defined(CONFIG_REGULATOR_TPS65023) || \
defined(CONFIG_REGULATOR_TPS65023_MODULE)
static struct regulator_consumer_supply z2_tps65021_consumers[] = {
- {
- .supply = "vcc_core",
- }
+ REGULATOR_SUPPLY("vcc_core", NULL),
};
static struct regulator_init_data z2_tps65021_info[] = {
--
1.7.5.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] ARM: mach-pxa: Use REGULATOR_SUPPLY macro
2012-05-08 8:25 [PATCH] ARM: mach-pxa: Use REGULATOR_SUPPLY macro Axel Lin
@ 2012-05-08 9:23 ` Robert Jarzmik
2012-05-08 9:26 ` Jonathan Cameron
2012-05-08 10:00 ` Igor Grinberg
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: Robert Jarzmik @ 2012-05-08 9:23 UTC (permalink / raw)
To: linux-arm-kernel
For mioa701:
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Cheers.
--
Robert
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] ARM: mach-pxa: Use REGULATOR_SUPPLY macro
2012-05-08 9:23 ` Robert Jarzmik
@ 2012-05-08 9:26 ` Jonathan Cameron
0 siblings, 0 replies; 7+ messages in thread
From: Jonathan Cameron @ 2012-05-08 9:26 UTC (permalink / raw)
To: linux-arm-kernel
On 5/8/2012 10:23 AM, Robert Jarzmik wrote:
> For mioa701:
> Acked-by: Robert Jarzmik<robert.jarzmik@free.fr>
For stargate2
Acked-by: Jonathan Cameron <jic23@kernel.org>
>
> Cheers.
>
> --
> Robert
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] ARM: mach-pxa: Use REGULATOR_SUPPLY macro
2012-05-08 8:25 [PATCH] ARM: mach-pxa: Use REGULATOR_SUPPLY macro Axel Lin
2012-05-08 9:23 ` Robert Jarzmik
@ 2012-05-08 10:00 ` Igor Grinberg
2012-05-08 10:22 ` Marek Vasut
2012-05-08 13:57 ` Paul Parsons
3 siblings, 0 replies; 7+ messages in thread
From: Igor Grinberg @ 2012-05-08 10:00 UTC (permalink / raw)
To: linux-arm-kernel
On 05/08/12 11:25, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
[...]
> arch/arm/mach-pxa/cm-x300.c | 4 +---
> arch/arm/mach-pxa/em-x270.c | 5 +----
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
[...]
--
Regards,
Igor.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] ARM: mach-pxa: Use REGULATOR_SUPPLY macro
2012-05-08 8:25 [PATCH] ARM: mach-pxa: Use REGULATOR_SUPPLY macro Axel Lin
2012-05-08 9:23 ` Robert Jarzmik
2012-05-08 10:00 ` Igor Grinberg
@ 2012-05-08 10:22 ` Marek Vasut
2012-05-08 13:57 ` Paul Parsons
3 siblings, 0 replies; 7+ messages in thread
From: Marek Vasut @ 2012-05-08 10:22 UTC (permalink / raw)
To: linux-arm-kernel
Dear Axel Lin,
For:
> arch/arm/mach-pxa/balloon3.c | 4 +---
> arch/arm/mach-pxa/palm27x.c | 4 +---
> arch/arm/mach-pxa/vpac270.c | 4 +---
> arch/arm/mach-pxa/z2.c | 4 +---
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] ARM: mach-pxa: Use REGULATOR_SUPPLY macro
2012-05-08 8:25 [PATCH] ARM: mach-pxa: Use REGULATOR_SUPPLY macro Axel Lin
` (2 preceding siblings ...)
2012-05-08 10:22 ` Marek Vasut
@ 2012-05-08 13:57 ` Paul Parsons
2012-05-14 1:27 ` Haojian Zhuang
3 siblings, 1 reply; 7+ messages in thread
From: Paul Parsons @ 2012-05-08 13:57 UTC (permalink / raw)
To: linux-arm-kernel
Hello Axel,
--- On Tue, 8/5/12, Axel Lin <axel.lin@gmail.com> wrote:
> arch/arm/mach-pxa/hx4700.c? ? |???13 ++++---------
The hx4700 patch works for me on linux-3.4.0-rc6.
Tested-by: Paul Parsons <lost.distance@yahoo.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] ARM: mach-pxa: Use REGULATOR_SUPPLY macro
2012-05-08 13:57 ` Paul Parsons
@ 2012-05-14 1:27 ` Haojian Zhuang
0 siblings, 0 replies; 7+ messages in thread
From: Haojian Zhuang @ 2012-05-14 1:27 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, May 8, 2012 at 9:57 PM, Paul Parsons <lost.distance@yahoo.com> wrote:
> Hello Axel,
>
> --- On Tue, 8/5/12, Axel Lin <axel.lin@gmail.com> wrote:
>> ?arch/arm/mach-pxa/hx4700.c? ? |???13 ++++---------
>
> The hx4700 patch works for me on linux-3.4.0-rc6.
>
> Tested-by: Paul Parsons <lost.distance@yahoo.com>
>
Applied
Regards
Haojian
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-05-14 1:27 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-08 8:25 [PATCH] ARM: mach-pxa: Use REGULATOR_SUPPLY macro Axel Lin
2012-05-08 9:23 ` Robert Jarzmik
2012-05-08 9:26 ` Jonathan Cameron
2012-05-08 10:00 ` Igor Grinberg
2012-05-08 10:22 ` Marek Vasut
2012-05-08 13:57 ` Paul Parsons
2012-05-14 1:27 ` Haojian Zhuang
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).