aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2016-11-23 08:13:21 -0500
committerMark Brown <broonie@kernel.org>2016-11-23 10:47:02 -0500
commit3498c5e15db3af90aee7dbe9a0910225422b85c1 (patch)
treec0f3bbcb945cb0c3e8f7f3c74b47b12fc58c087e /drivers
parent15cc95c442859e8b26b59234569d926c246e45f1 (diff)
regulator: twl6030: Remove unused fields from struct twlreg_info
The table_len, *table, remap and max_mV fields are not used, so remove them. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/regulator/twl6030-regulator.c46
1 files changed, 17 insertions, 29 deletions
diff --git a/drivers/regulator/twl6030-regulator.c b/drivers/regulator/twl6030-regulator.c
index a446137f57bb..4864b9d742c0 100644
--- a/drivers/regulator/twl6030-regulator.c
+++ b/drivers/regulator/twl6030-regulator.c
@@ -31,16 +31,8 @@ struct twlreg_info {
31 /* twl resource ID, for resource control state machine */ 31 /* twl resource ID, for resource control state machine */
32 u8 id; 32 u8 id;
33 33
34 /* voltage in mV = table[VSEL]; table_len must be a power-of-two */
35 u8 table_len;
36 const u16 *table;
37
38 /* State REMAP default configuration */
39 u8 remap;
40
41 /* chip constraints on regulator behavior */ 34 /* chip constraints on regulator behavior */
42 u16 min_mV; 35 u16 min_mV;
43 u16 max_mV;
44 36
45 u8 flags; 37 u8 flags;
46 38
@@ -535,11 +527,10 @@ static const struct twlreg_info TWL6030_INFO_##label = { \
535 }, \ 527 }, \
536 } 528 }
537 529
538#define TWL6030_ADJUSTABLE_LDO(label, offset, min_mVolts, max_mVolts) \ 530#define TWL6030_ADJUSTABLE_LDO(label, offset, min_mVolts) \
539static const struct twlreg_info TWL6030_INFO_##label = { \ 531static const struct twlreg_info TWL6030_INFO_##label = { \
540 .base = offset, \ 532 .base = offset, \
541 .min_mV = min_mVolts, \ 533 .min_mV = min_mVolts, \
542 .max_mV = max_mVolts, \
543 .desc = { \ 534 .desc = { \
544 .name = #label, \ 535 .name = #label, \
545 .id = TWL6030_REG_##label, \ 536 .id = TWL6030_REG_##label, \
@@ -550,11 +541,10 @@ static const struct twlreg_info TWL6030_INFO_##label = { \
550 }, \ 541 }, \
551 } 542 }
552 543
553#define TWL6032_ADJUSTABLE_LDO(label, offset, min_mVolts, max_mVolts) \ 544#define TWL6032_ADJUSTABLE_LDO(label, offset, min_mVolts) \
554static const struct twlreg_info TWL6032_INFO_##label = { \ 545static const struct twlreg_info TWL6032_INFO_##label = { \
555 .base = offset, \ 546 .base = offset, \
556 .min_mV = min_mVolts, \ 547 .min_mV = min_mVolts, \
557 .max_mV = max_mVolts, \
558 .desc = { \ 548 .desc = { \
559 .name = #label, \ 549 .name = #label, \
560 .id = TWL6032_REG_##label, \ 550 .id = TWL6032_REG_##label, \
@@ -570,7 +560,6 @@ static const struct twlreg_info TWLFIXED_INFO_##label = { \
570 .base = offset, \ 560 .base = offset, \
571 .id = 0, \ 561 .id = 0, \
572 .min_mV = mVolts, \ 562 .min_mV = mVolts, \
573 .remap = 0, \
574 .desc = { \ 563 .desc = { \
575 .name = #label, \ 564 .name = #label, \
576 .id = TWL6030##_REG_##label, \ 565 .id = TWL6030##_REG_##label, \
@@ -588,7 +577,6 @@ static const struct twlreg_info TWLFIXED_INFO_##label = { \
588static const struct twlreg_info TWLSMPS_INFO_##label = { \ 577static const struct twlreg_info TWLSMPS_INFO_##label = { \
589 .base = offset, \ 578 .base = offset, \
590 .min_mV = 600, \ 579 .min_mV = 600, \
591 .max_mV = 2100, \
592 .desc = { \ 580 .desc = { \
593 .name = #label, \ 581 .name = #label, \
594 .id = TWL6032_REG_##label, \ 582 .id = TWL6032_REG_##label, \
@@ -606,22 +594,22 @@ static const struct twlreg_info TWLSMPS_INFO_##label = { \
606TWL6030_ADJUSTABLE_SMPS(VDD1); 594TWL6030_ADJUSTABLE_SMPS(VDD1);
607TWL6030_ADJUSTABLE_SMPS(VDD2); 595TWL6030_ADJUSTABLE_SMPS(VDD2);
608TWL6030_ADJUSTABLE_SMPS(VDD3); 596TWL6030_ADJUSTABLE_SMPS(VDD3);
609TWL6030_ADJUSTABLE_LDO(VAUX1_6030, 0x54, 1000, 3300); 597TWL6030_ADJUSTABLE_LDO(VAUX1_6030, 0x54, 1000);
610TWL6030_ADJUSTABLE_LDO(VAUX2_6030, 0x58, 1000, 3300); 598TWL6030_ADJUSTABLE_LDO(VAUX2_6030, 0x58, 1000);
611TWL6030_ADJUSTABLE_LDO(VAUX3_6030, 0x5c, 1000, 3300); 599TWL6030_ADJUSTABLE_LDO(VAUX3_6030, 0x5c, 1000);
612TWL6030_ADJUSTABLE_LDO(VMMC, 0x68, 1000, 3300); 600TWL6030_ADJUSTABLE_LDO(VMMC, 0x68, 1000);
613TWL6030_ADJUSTABLE_LDO(VPP, 0x6c, 1000, 3300); 601TWL6030_ADJUSTABLE_LDO(VPP, 0x6c, 1000);
614TWL6030_ADJUSTABLE_LDO(VUSIM, 0x74, 1000, 3300); 602TWL6030_ADJUSTABLE_LDO(VUSIM, 0x74, 1000);
615/* 6025 are renamed compared to 6030 versions */ 603/* 6025 are renamed compared to 6030 versions */
616TWL6032_ADJUSTABLE_LDO(LDO2, 0x54, 1000, 3300); 604TWL6032_ADJUSTABLE_LDO(LDO2, 0x54, 1000);
617TWL6032_ADJUSTABLE_LDO(LDO4, 0x58, 1000, 3300); 605TWL6032_ADJUSTABLE_LDO(LDO4, 0x58, 1000);
618TWL6032_ADJUSTABLE_LDO(LDO3, 0x5c, 1000, 3300); 606TWL6032_ADJUSTABLE_LDO(LDO3, 0x5c, 1000);
619TWL6032_ADJUSTABLE_LDO(LDO5, 0x68, 1000, 3300); 607TWL6032_ADJUSTABLE_LDO(LDO5, 0x68, 1000);
620TWL6032_ADJUSTABLE_LDO(LDO1, 0x6c, 1000, 3300); 608TWL6032_ADJUSTABLE_LDO(LDO1, 0x6c, 1000);
621TWL6032_ADJUSTABLE_LDO(LDO7, 0x74, 1000, 3300); 609TWL6032_ADJUSTABLE_LDO(LDO7, 0x74, 1000);
622TWL6032_ADJUSTABLE_LDO(LDO6, 0x60, 1000, 3300); 610TWL6032_ADJUSTABLE_LDO(LDO6, 0x60, 1000);
623TWL6032_ADJUSTABLE_LDO(LDOLN, 0x64, 1000, 3300); 611TWL6032_ADJUSTABLE_LDO(LDOLN, 0x64, 1000);
624TWL6032_ADJUSTABLE_LDO(LDOUSB, 0x70, 1000, 3300); 612TWL6032_ADJUSTABLE_LDO(LDOUSB, 0x70, 1000);
625TWL6030_FIXED_LDO(VANA, 0x50, 2100, 0); 613TWL6030_FIXED_LDO(VANA, 0x50, 2100, 0);
626TWL6030_FIXED_LDO(VCXIO, 0x60, 1800, 0); 614TWL6030_FIXED_LDO(VCXIO, 0x60, 1800, 0);
627TWL6030_FIXED_LDO(VDAC, 0x64, 1800, 0); 615TWL6030_FIXED_LDO(VDAC, 0x64, 1800, 0);