diff options
author | Axel Lin <axel.lin@ingics.com> | 2016-11-23 08:13:21 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-11-23 10:47:02 -0500 |
commit | 3498c5e15db3af90aee7dbe9a0910225422b85c1 (patch) | |
tree | c0f3bbcb945cb0c3e8f7f3c74b47b12fc58c087e /drivers | |
parent | 15cc95c442859e8b26b59234569d926c246e45f1 (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.c | 46 |
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) \ |
539 | static const struct twlreg_info TWL6030_INFO_##label = { \ | 531 | static 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) \ |
554 | static const struct twlreg_info TWL6032_INFO_##label = { \ | 545 | static 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 = { \ | |||
588 | static const struct twlreg_info TWLSMPS_INFO_##label = { \ | 577 | static 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 = { \ | |||
606 | TWL6030_ADJUSTABLE_SMPS(VDD1); | 594 | TWL6030_ADJUSTABLE_SMPS(VDD1); |
607 | TWL6030_ADJUSTABLE_SMPS(VDD2); | 595 | TWL6030_ADJUSTABLE_SMPS(VDD2); |
608 | TWL6030_ADJUSTABLE_SMPS(VDD3); | 596 | TWL6030_ADJUSTABLE_SMPS(VDD3); |
609 | TWL6030_ADJUSTABLE_LDO(VAUX1_6030, 0x54, 1000, 3300); | 597 | TWL6030_ADJUSTABLE_LDO(VAUX1_6030, 0x54, 1000); |
610 | TWL6030_ADJUSTABLE_LDO(VAUX2_6030, 0x58, 1000, 3300); | 598 | TWL6030_ADJUSTABLE_LDO(VAUX2_6030, 0x58, 1000); |
611 | TWL6030_ADJUSTABLE_LDO(VAUX3_6030, 0x5c, 1000, 3300); | 599 | TWL6030_ADJUSTABLE_LDO(VAUX3_6030, 0x5c, 1000); |
612 | TWL6030_ADJUSTABLE_LDO(VMMC, 0x68, 1000, 3300); | 600 | TWL6030_ADJUSTABLE_LDO(VMMC, 0x68, 1000); |
613 | TWL6030_ADJUSTABLE_LDO(VPP, 0x6c, 1000, 3300); | 601 | TWL6030_ADJUSTABLE_LDO(VPP, 0x6c, 1000); |
614 | TWL6030_ADJUSTABLE_LDO(VUSIM, 0x74, 1000, 3300); | 602 | TWL6030_ADJUSTABLE_LDO(VUSIM, 0x74, 1000); |
615 | /* 6025 are renamed compared to 6030 versions */ | 603 | /* 6025 are renamed compared to 6030 versions */ |
616 | TWL6032_ADJUSTABLE_LDO(LDO2, 0x54, 1000, 3300); | 604 | TWL6032_ADJUSTABLE_LDO(LDO2, 0x54, 1000); |
617 | TWL6032_ADJUSTABLE_LDO(LDO4, 0x58, 1000, 3300); | 605 | TWL6032_ADJUSTABLE_LDO(LDO4, 0x58, 1000); |
618 | TWL6032_ADJUSTABLE_LDO(LDO3, 0x5c, 1000, 3300); | 606 | TWL6032_ADJUSTABLE_LDO(LDO3, 0x5c, 1000); |
619 | TWL6032_ADJUSTABLE_LDO(LDO5, 0x68, 1000, 3300); | 607 | TWL6032_ADJUSTABLE_LDO(LDO5, 0x68, 1000); |
620 | TWL6032_ADJUSTABLE_LDO(LDO1, 0x6c, 1000, 3300); | 608 | TWL6032_ADJUSTABLE_LDO(LDO1, 0x6c, 1000); |
621 | TWL6032_ADJUSTABLE_LDO(LDO7, 0x74, 1000, 3300); | 609 | TWL6032_ADJUSTABLE_LDO(LDO7, 0x74, 1000); |
622 | TWL6032_ADJUSTABLE_LDO(LDO6, 0x60, 1000, 3300); | 610 | TWL6032_ADJUSTABLE_LDO(LDO6, 0x60, 1000); |
623 | TWL6032_ADJUSTABLE_LDO(LDOLN, 0x64, 1000, 3300); | 611 | TWL6032_ADJUSTABLE_LDO(LDOLN, 0x64, 1000); |
624 | TWL6032_ADJUSTABLE_LDO(LDOUSB, 0x70, 1000, 3300); | 612 | TWL6032_ADJUSTABLE_LDO(LDOUSB, 0x70, 1000); |
625 | TWL6030_FIXED_LDO(VANA, 0x50, 2100, 0); | 613 | TWL6030_FIXED_LDO(VANA, 0x50, 2100, 0); |
626 | TWL6030_FIXED_LDO(VCXIO, 0x60, 1800, 0); | 614 | TWL6030_FIXED_LDO(VCXIO, 0x60, 1800, 0); |
627 | TWL6030_FIXED_LDO(VDAC, 0x64, 1800, 0); | 615 | TWL6030_FIXED_LDO(VDAC, 0x64, 1800, 0); |