aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s5pv210/mach-aquila.c
diff options
context:
space:
mode:
authorKukjin Kim <kgene.kim@samsung.com>2011-01-28 04:22:10 -0500
committerKukjin Kim <kgene.kim@samsung.com>2011-02-21 23:50:01 -0500
commitd3f9c570219c72736ae2da9071f1efbf804707f7 (patch)
tree6e123cc7dbb648b94331bc0442b418c1178bdc00 /arch/arm/mach-s5pv210/mach-aquila.c
parentf5412be599602124d2bdd49947b231dd77c0bf99 (diff)
ARM: S5PV210: Use REGULATOR_SUPPLY macro for regulator consumers
To use REGULATOR_SUPPLY macro is cleaner for initializing regulator consumer supply. Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s5pv210/mach-aquila.c')
-rw-r--r--arch/arm/mach-s5pv210/mach-aquila.c52
1 files changed, 17 insertions, 35 deletions
diff --git a/arch/arm/mach-s5pv210/mach-aquila.c b/arch/arm/mach-s5pv210/mach-aquila.c
index 557add4fc56c..e5acb36a7a51 100644
--- a/arch/arm/mach-s5pv210/mach-aquila.c
+++ b/arch/arm/mach-s5pv210/mach-aquila.c
@@ -296,13 +296,11 @@ static struct regulator_init_data aquila_ldo17_data = {
296}; 296};
297 297
298/* BUCK */ 298/* BUCK */
299static struct regulator_consumer_supply buck1_consumer[] = { 299static struct regulator_consumer_supply buck1_consumer =
300 { .supply = "vddarm", }, 300 REGULATOR_SUPPLY("vddarm", NULL);
301};
302 301
303static struct regulator_consumer_supply buck2_consumer[] = { 302static struct regulator_consumer_supply buck2_consumer =
304 { .supply = "vddint", }, 303 REGULATOR_SUPPLY("vddint", NULL);
305};
306 304
307static struct regulator_init_data aquila_buck1_data = { 305static struct regulator_init_data aquila_buck1_data = {
308 .constraints = { 306 .constraints = {
@@ -313,8 +311,8 @@ static struct regulator_init_data aquila_buck1_data = {
313 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | 311 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
314 REGULATOR_CHANGE_STATUS, 312 REGULATOR_CHANGE_STATUS,
315 }, 313 },
316 .num_consumer_supplies = ARRAY_SIZE(buck1_consumer), 314 .num_consumer_supplies = 1,
317 .consumer_supplies = buck1_consumer, 315 .consumer_supplies = &buck1_consumer,
318}; 316};
319 317
320static struct regulator_init_data aquila_buck2_data = { 318static struct regulator_init_data aquila_buck2_data = {
@@ -326,8 +324,8 @@ static struct regulator_init_data aquila_buck2_data = {
326 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | 324 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
327 REGULATOR_CHANGE_STATUS, 325 REGULATOR_CHANGE_STATUS,
328 }, 326 },
329 .num_consumer_supplies = ARRAY_SIZE(buck2_consumer), 327 .num_consumer_supplies = 1,
330 .consumer_supplies = buck2_consumer, 328 .consumer_supplies = &buck2_consumer,
331}; 329};
332 330
333static struct regulator_init_data aquila_buck3_data = { 331static struct regulator_init_data aquila_buck3_data = {
@@ -391,26 +389,14 @@ static struct max8998_platform_data aquila_max8998_pdata = {
391#endif 389#endif
392 390
393static struct regulator_consumer_supply wm8994_fixed_voltage0_supplies[] = { 391static struct regulator_consumer_supply wm8994_fixed_voltage0_supplies[] = {
394 { 392 REGULATOR_SUPPLY("DBVDD", "5-001a"),
395 .dev_name = "5-001a", 393 REGULATOR_SUPPLY("AVDD2", "5-001a"),
396 .supply = "DBVDD", 394 REGULATOR_SUPPLY("CPVDD", "5-001a"),
397 }, {
398 .dev_name = "5-001a",
399 .supply = "AVDD2",
400 }, {
401 .dev_name = "5-001a",
402 .supply = "CPVDD",
403 },
404}; 395};
405 396
406static struct regulator_consumer_supply wm8994_fixed_voltage1_supplies[] = { 397static struct regulator_consumer_supply wm8994_fixed_voltage1_supplies[] = {
407 { 398 REGULATOR_SUPPLY("SPKVDD1", "5-001a"),
408 .dev_name = "5-001a", 399 REGULATOR_SUPPLY("SPKVDD2", "5-001a"),
409 .supply = "SPKVDD1",
410 }, {
411 .dev_name = "5-001a",
412 .supply = "SPKVDD2",
413 },
414}; 400};
415 401
416static struct regulator_init_data wm8994_fixed_voltage0_init_data = { 402static struct regulator_init_data wm8994_fixed_voltage0_init_data = {
@@ -459,15 +445,11 @@ static struct platform_device wm8994_fixed_voltage1 = {
459 }, 445 },
460}; 446};
461 447
462static struct regulator_consumer_supply wm8994_avdd1_supply = { 448static struct regulator_consumer_supply wm8994_avdd1_supply =
463 .dev_name = "5-001a", 449 REGULATOR_SUPPLY("AVDD1", "5-001a");
464 .supply = "AVDD1",
465};
466 450
467static struct regulator_consumer_supply wm8994_dcvdd_supply = { 451static struct regulator_consumer_supply wm8994_dcvdd_supply =
468 .dev_name = "5-001a", 452 REGULATOR_SUPPLY("DCVDD", "5-001a");
469 .supply = "DCVDD",
470};
471 453
472static struct regulator_init_data wm8994_ldo1_data = { 454static struct regulator_init_data wm8994_ldo1_data = {
473 .constraints = { 455 .constraints = {