ARM: pxa: Use REGULATOR_SUPPLY macro
authorAxel Lin <axel.lin@gmail.com>
Tue, 8 May 2012 08:25:10 +0000 (16:25 +0800)
committerHaojian Zhuang <haojian.zhuang@gmail.com>
Mon, 14 May 2012 01:30:04 +0000 (09:30 +0800)
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>
arch/arm/mach-pxa/balloon3.c
arch/arm/mach-pxa/cm-x300.c
arch/arm/mach-pxa/em-x270.c
arch/arm/mach-pxa/hx4700.c
arch/arm/mach-pxa/magician.c
arch/arm/mach-pxa/mioa701.c
arch/arm/mach-pxa/palm27x.c
arch/arm/mach-pxa/spitz.c
arch/arm/mach-pxa/stargate2.c
arch/arm/mach-pxa/vpac270.c
arch/arm/mach-pxa/z2.c

index c35456f02acb4733453cda084e5fcb80ac0f5a3d..56e8cebeb7d5240dab37761ddc25978d997a6ece 100644 (file)
@@ -732,9 +732,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 = {
index 31327401627725bbc6fa3a4b3cadfc5426d436cb..3e4e9fe2d462e1a82db41bac884ad5c3a18c078a 100644 (file)
@@ -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 = {
index 16ec557b8e43f50bc58014513724d86177e75c09..a3a4a38d49727a818e2228043f4194a8046eb6c6 100644 (file)
@@ -1085,10 +1085,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");
index b83b95a2950342b298a8693b753217feacb4b5ab..88f0f51ad6d5c2a6723289cf2cb8af600a695d71 100644 (file)
@@ -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 = {
index 8de0651d7efbdffb3c509814f7ded4bab8149ec6..2db697cd2b4ecc9fcb3be872aa0f82cd276b0577 100644 (file)
@@ -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 = {
index 061d57009cee98aec4335c745d3a7a51cfd975ea..6745149aa9d5fe061a036705ffb63be87ef51733 100644 (file)
@@ -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 = {
index fbc10d7b95d1e8ef7ceec5dd03d512c7c2d314bf..dad71cfa34c8ea7c53dc109b72c3cbb7a4a732ac 100644 (file)
@@ -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 = {
index df2ab0fb2aced7c34736019f123c9e8cdfe38a2f..363d91b44ecbd24cd4ed9a86ab478bff41b0a783 100644 (file)
@@ -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[] = {
index 4cd645e29b64aa06215f937436dfaa94e52a0258..30b1b0b3c7f7cd26dbd53732aca076ce873f29db 100644 (file)
@@ -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{
index c57ab636ea9c85f5f459c48c422ca6fb680e35f4..e1740acd15f12615413cd317b2a1091d669ac5da 100644 (file)
@@ -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 = {
index fa8619970841b8e12a7b1b8a14e1844952e660a7..b9320cb8a11f36d79f93782a35986ae199929616 100644 (file)
@@ -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[] = {
This page took 0.042262 seconds and 5 git commands to generate.