aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-05-08 04:25:10 -0400
committerHaojian Zhuang <haojian.zhuang@gmail.com>2012-05-13 21:30:04 -0400
commit0bf189abc52b89bfcfa9782543de7f5e90263fe5 (patch)
treea64266cb44abab200f27c529b78ff618bfa3daa9 /arch/arm/mach-pxa
parent36be50515fe2aef61533b516fa2576a2c7fe7664 (diff)
ARM: pxa: Use REGULATOR_SUPPLY macro
Signed-off-by: Axel Lin <axel.lin@gmail.com> Cc: Eric Miao <eric.y.miao@gmail.com> Tested-by: Paul Parsons <lost.distance@yahoo.com> Acked-by: Philipp Zabel <philipp.zabel@gmail.com> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Acked-by: Marek Vasut <marek.vasut@gmail.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r--arch/arm/mach-pxa/balloon3.c4
-rw-r--r--arch/arm/mach-pxa/cm-x300.c4
-rw-r--r--arch/arm/mach-pxa/em-x270.c5
-rw-r--r--arch/arm/mach-pxa/hx4700.c13
-rw-r--r--arch/arm/mach-pxa/magician.c8
-rw-r--r--arch/arm/mach-pxa/mioa701.c4
-rw-r--r--arch/arm/mach-pxa/palm27x.c4
-rw-r--r--arch/arm/mach-pxa/spitz.c4
-rw-r--r--arch/arm/mach-pxa/stargate2.c5
-rw-r--r--arch/arm/mach-pxa/vpac270.c4
-rw-r--r--arch/arm/mach-pxa/z2.c4
11 files changed, 15 insertions, 44 deletions
diff --git a/arch/arm/mach-pxa/balloon3.c b/arch/arm/mach-pxa/balloon3.c
index c35456f02acb..56e8cebeb7d5 100644
--- a/arch/arm/mach-pxa/balloon3.c
+++ b/arch/arm/mach-pxa/balloon3.c
@@ -732,9 +732,7 @@ static inline void balloon3_nand_init(void) {}
732#if defined(CONFIG_REGULATOR_MAX1586) || \ 732#if defined(CONFIG_REGULATOR_MAX1586) || \
733 defined(CONFIG_REGULATOR_MAX1586_MODULE) 733 defined(CONFIG_REGULATOR_MAX1586_MODULE)
734static struct regulator_consumer_supply balloon3_max1587a_consumers[] = { 734static struct regulator_consumer_supply balloon3_max1587a_consumers[] = {
735 { 735 REGULATOR_SUPPLY("vcc_core", NULL),
736 .supply = "vcc_core",
737 }
738}; 736};
739 737
740static struct regulator_init_data balloon3_max1587a_v3_info = { 738static 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 313274016277..3e4e9fe2d462 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 = {
713}; 713};
714 714
715static struct regulator_consumer_supply buck2_consumers[] = { 715static struct regulator_consumer_supply buck2_consumers[] = {
716 { 716 REGULATOR_SUPPLY("vcc_core", NULL),
717 .supply = "vcc_core",
718 },
719}; 717};
720 718
721static struct regulator_init_data buck2_data = { 719static 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 16ec557b8e43..a3a4a38d4972 100644
--- a/arch/arm/mach-pxa/em-x270.c
+++ b/arch/arm/mach-pxa/em-x270.c
@@ -1085,10 +1085,7 @@ static void __init em_x270_userspace_consumers_init(void)
1085/* DA9030 related initializations */ 1085/* DA9030 related initializations */
1086#define REGULATOR_CONSUMER(_name, _dev_name, _supply) \ 1086#define REGULATOR_CONSUMER(_name, _dev_name, _supply) \
1087 static struct regulator_consumer_supply _name##_consumers[] = { \ 1087 static struct regulator_consumer_supply _name##_consumers[] = { \
1088 { \ 1088 REGULATOR_SUPPLY(_supply, _dev_name), \
1089 .dev_name = _dev_name, \
1090 .supply = _supply, \
1091 }, \
1092 } 1089 }
1093 1090
1094REGULATOR_CONSUMER(ldo3, "reg-userspace-consumer.0", "vcc gps"); 1091REGULATOR_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 b83b95a29503..88f0f51ad6d5 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 = {
680 */ 680 */
681 681
682static struct regulator_consumer_supply bq24022_consumers[] = { 682static struct regulator_consumer_supply bq24022_consumers[] = {
683 { 683 REGULATOR_SUPPLY("vbus_draw", NULL),
684 .supply = "vbus_draw", 684 REGULATOR_SUPPLY("ac_draw", NULL),
685 },
686 {
687 .supply = "ac_draw",
688 },
689}; 685};
690 686
691static struct regulator_init_data bq24022_init_data = { 687static struct regulator_init_data bq24022_init_data = {
@@ -764,9 +760,8 @@ static struct platform_device strataflash = {
764 * Maxim MAX1587A on PI2C 760 * Maxim MAX1587A on PI2C
765 */ 761 */
766 762
767static struct regulator_consumer_supply max1587a_consumer = { 763static struct regulator_consumer_supply max1587a_consumer =
768 .supply = "vcc_core", 764 REGULATOR_SUPPLY("vcc_core", NULL);
769};
770 765
771static struct regulator_init_data max1587a_v3_info = { 766static struct regulator_init_data max1587a_v3_info = {
772 .constraints = { 767 .constraints = {
diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c
index 8de0651d7efb..2db697cd2b4e 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 = {
579 */ 579 */
580 580
581static struct regulator_consumer_supply bq24022_consumers[] = { 581static struct regulator_consumer_supply bq24022_consumers[] = {
582 { 582 REGULATOR_SUPPLY("vbus_draw", NULL),
583 .supply = "vbus_draw", 583 REGULATOR_SUPPLY("ac_draw", NULL),
584 },
585 {
586 .supply = "ac_draw",
587 },
588}; 584};
589 585
590static struct regulator_init_data bq24022_init_data = { 586static struct regulator_init_data bq24022_init_data = {
diff --git a/arch/arm/mach-pxa/mioa701.c b/arch/arm/mach-pxa/mioa701.c
index 061d57009cee..6745149aa9d5 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 = {
581 * Voltage regulation 581 * Voltage regulation
582 */ 582 */
583static struct regulator_consumer_supply max1586_consumers[] = { 583static struct regulator_consumer_supply max1586_consumers[] = {
584 { 584 REGULATOR_SUPPLY("vcc_core", NULL),
585 .supply = "vcc_core",
586 }
587}; 585};
588 586
589static struct regulator_init_data max1586_v3_info = { 587static struct regulator_init_data max1586_v3_info = {
diff --git a/arch/arm/mach-pxa/palm27x.c b/arch/arm/mach-pxa/palm27x.c
index fbc10d7b95d1..dad71cfa34c8 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)
429#if defined(CONFIG_REGULATOR_MAX1586) || \ 429#if defined(CONFIG_REGULATOR_MAX1586) || \
430 defined(CONFIG_REGULATOR_MAX1586_MODULE) 430 defined(CONFIG_REGULATOR_MAX1586_MODULE)
431static struct regulator_consumer_supply palm27x_max1587a_consumers[] = { 431static struct regulator_consumer_supply palm27x_max1587a_consumers[] = {
432 { 432 REGULATOR_SUPPLY("vcc_core", NULL),
433 .supply = "vcc_core",
434 }
435}; 433};
436 434
437static struct regulator_init_data palm27x_max1587a_v3_info = { 435static 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 df2ab0fb2ace..363d91b44ecb 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[] = {
877}; 877};
878 878
879static struct regulator_consumer_supply isl6271a_consumers[] = { 879static struct regulator_consumer_supply isl6271a_consumers[] = {
880 { 880 REGULATOR_SUPPLY("vcc_core", NULL),
881 .supply = "vcc_core",
882 }
883}; 881};
884 882
885static struct regulator_init_data isl6271a_info[] = { 883static struct regulator_init_data isl6271a_info[] = {
diff --git a/arch/arm/mach-pxa/stargate2.c b/arch/arm/mach-pxa/stargate2.c
index 4cd645e29b64..30b1b0b3c7f7 100644
--- a/arch/arm/mach-pxa/stargate2.c
+++ b/arch/arm/mach-pxa/stargate2.c
@@ -151,10 +151,7 @@ static struct platform_device sht15 = {
151}; 151};
152 152
153static struct regulator_consumer_supply stargate2_sensor_3_con[] = { 153static struct regulator_consumer_supply stargate2_sensor_3_con[] = {
154 { 154 REGULATOR_SUPPLY("vcc", "sht15"),
155 .dev_name = "sht15",
156 .supply = "vcc",
157 },
158}; 155};
159 156
160enum stargate2_ldos{ 157enum stargate2_ldos{
diff --git a/arch/arm/mach-pxa/vpac270.c b/arch/arm/mach-pxa/vpac270.c
index c57ab636ea9c..e1740acd15f1 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) {}
640#if defined(CONFIG_REGULATOR_MAX1586) || \ 640#if defined(CONFIG_REGULATOR_MAX1586) || \
641 defined(CONFIG_REGULATOR_MAX1586_MODULE) 641 defined(CONFIG_REGULATOR_MAX1586_MODULE)
642static struct regulator_consumer_supply vpac270_max1587a_consumers[] = { 642static struct regulator_consumer_supply vpac270_max1587a_consumers[] = {
643 { 643 REGULATOR_SUPPLY("vcc_core", NULL),
644 .supply = "vcc_core",
645 }
646}; 644};
647 645
648static struct regulator_init_data vpac270_max1587a_v3_info = { 646static 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 fa8619970841..b9320cb8a11f 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) {}
615#if defined(CONFIG_REGULATOR_TPS65023) || \ 615#if defined(CONFIG_REGULATOR_TPS65023) || \
616 defined(CONFIG_REGULATOR_TPS65023_MODULE) 616 defined(CONFIG_REGULATOR_TPS65023_MODULE)
617static struct regulator_consumer_supply z2_tps65021_consumers[] = { 617static struct regulator_consumer_supply z2_tps65021_consumers[] = {
618 { 618 REGULATOR_SUPPLY("vcc_core", NULL),
619 .supply = "vcc_core",
620 }
621}; 619};
622 620
623static struct regulator_init_data z2_tps65021_info[] = { 621static struct regulator_init_data z2_tps65021_info[] = {