aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s5pv210/mach-goni.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-goni.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-goni.c')
-rw-r--r--arch/arm/mach-s5pv210/mach-goni.c52
1 files changed, 17 insertions, 35 deletions
diff --git a/arch/arm/mach-s5pv210/mach-goni.c b/arch/arm/mach-s5pv210/mach-goni.c
index 056f5c769b0a..43c1c1b1c0ae 100644
--- a/arch/arm/mach-s5pv210/mach-goni.c
+++ b/arch/arm/mach-s5pv210/mach-goni.c
@@ -436,13 +436,11 @@ static struct regulator_init_data goni_ldo17_data = {
436}; 436};
437 437
438/* BUCK */ 438/* BUCK */
439static struct regulator_consumer_supply buck1_consumer[] = { 439static struct regulator_consumer_supply buck1_consumer =
440 { .supply = "vddarm", }, 440 REGULATOR_SUPPLY("vddarm", NULL);
441};
442 441
443static struct regulator_consumer_supply buck2_consumer[] = { 442static struct regulator_consumer_supply buck2_consumer =
444 { .supply = "vddint", }, 443 REGULATOR_SUPPLY("vddint", NULL);
445};
446 444
447static struct regulator_init_data goni_buck1_data = { 445static struct regulator_init_data goni_buck1_data = {
448 .constraints = { 446 .constraints = {
@@ -453,8 +451,8 @@ static struct regulator_init_data goni_buck1_data = {
453 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | 451 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
454 REGULATOR_CHANGE_STATUS, 452 REGULATOR_CHANGE_STATUS,
455 }, 453 },
456 .num_consumer_supplies = ARRAY_SIZE(buck1_consumer), 454 .num_consumer_supplies = 1,
457 .consumer_supplies = buck1_consumer, 455 .consumer_supplies = &buck1_consumer,
458}; 456};
459 457
460static struct regulator_init_data goni_buck2_data = { 458static struct regulator_init_data goni_buck2_data = {
@@ -466,8 +464,8 @@ static struct regulator_init_data goni_buck2_data = {
466 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | 464 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
467 REGULATOR_CHANGE_STATUS, 465 REGULATOR_CHANGE_STATUS,
468 }, 466 },
469 .num_consumer_supplies = ARRAY_SIZE(buck2_consumer), 467 .num_consumer_supplies = 1,
470 .consumer_supplies = buck2_consumer, 468 .consumer_supplies = &buck2_consumer,
471}; 469};
472 470
473static struct regulator_init_data goni_buck3_data = { 471static struct regulator_init_data goni_buck3_data = {
@@ -531,26 +529,14 @@ static struct max8998_platform_data goni_max8998_pdata = {
531#endif 529#endif
532 530
533static struct regulator_consumer_supply wm8994_fixed_voltage0_supplies[] = { 531static struct regulator_consumer_supply wm8994_fixed_voltage0_supplies[] = {
534 { 532 REGULATOR_SUPPLY("DBVDD", "5-001a"),
535 .dev_name = "5-001a", 533 REGULATOR_SUPPLY("AVDD2", "5-001a"),
536 .supply = "DBVDD", 534 REGULATOR_SUPPLY("CPVDD", "5-001a"),
537 }, {
538 .dev_name = "5-001a",
539 .supply = "AVDD2",
540 }, {
541 .dev_name = "5-001a",
542 .supply = "CPVDD",
543 },
544}; 535};
545 536
546static struct regulator_consumer_supply wm8994_fixed_voltage1_supplies[] = { 537static struct regulator_consumer_supply wm8994_fixed_voltage1_supplies[] = {
547 { 538 REGULATOR_SUPPLY("SPKVDD1", "5-001a"),
548 .dev_name = "5-001a", 539 REGULATOR_SUPPLY("SPKVDD2", "5-001a"),
549 .supply = "SPKVDD1",
550 }, {
551 .dev_name = "5-001a",
552 .supply = "SPKVDD2",
553 },
554}; 540};
555 541
556static struct regulator_init_data wm8994_fixed_voltage0_init_data = { 542static struct regulator_init_data wm8994_fixed_voltage0_init_data = {
@@ -599,15 +585,11 @@ static struct platform_device wm8994_fixed_voltage1 = {
599 }, 585 },
600}; 586};
601 587
602static struct regulator_consumer_supply wm8994_avdd1_supply = { 588static struct regulator_consumer_supply wm8994_avdd1_supply =
603 .dev_name = "5-001a", 589 REGULATOR_SUPPLY("AVDD1", "5-001a");
604 .supply = "AVDD1",
605};
606 590
607static struct regulator_consumer_supply wm8994_dcvdd_supply = { 591static struct regulator_consumer_supply wm8994_dcvdd_supply =
608 .dev_name = "5-001a", 592 REGULATOR_SUPPLY("DCVDD", "5-001a");
609 .supply = "DCVDD",
610};
611 593
612static struct regulator_init_data wm8994_ldo1_data = { 594static struct regulator_init_data wm8994_ldo1_data = {
613 .constraints = { 595 .constraints = {