* [PATCH] regulator: tps6507x: Remove unused min_uV and max_uV from struct tps_info
@ 2012-06-05 0:39 Axel Lin
2012-06-05 10:21 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2012-06-05 0:39 UTC (permalink / raw)
To: linux-kernel; +Cc: Mark Brown, Liam Girdwood, Anuj Aggarwal
The min_uV and max_uV are not used in this driver.
For table based voltage mappings, we can get min_uV and max_uV by
info->table[0] and info->table[table_len -1].
Thus remove min_uV and max_uV from struct tps_info.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/regulator/tps6507x-regulator.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/drivers/regulator/tps6507x-regulator.c b/drivers/regulator/tps6507x-regulator.c
index c771e10..eed6678 100644
--- a/drivers/regulator/tps6507x-regulator.c
+++ b/drivers/regulator/tps6507x-regulator.c
@@ -91,8 +91,6 @@ static const unsigned int LDO2_VSEL_table[] = {
struct tps_info {
const char *name;
- unsigned min_uV;
- unsigned max_uV;
u8 table_len;
const unsigned int *table;
@@ -103,36 +101,26 @@ struct tps_info {
static struct tps_info tps6507x_pmic_regs[] = {
{
.name = "VDCDC1",
- .min_uV = 725000,
- .max_uV = 3300000,
.table_len = ARRAY_SIZE(VDCDCx_VSEL_table),
.table = VDCDCx_VSEL_table,
},
{
.name = "VDCDC2",
- .min_uV = 725000,
- .max_uV = 3300000,
.table_len = ARRAY_SIZE(VDCDCx_VSEL_table),
.table = VDCDCx_VSEL_table,
},
{
.name = "VDCDC3",
- .min_uV = 725000,
- .max_uV = 3300000,
.table_len = ARRAY_SIZE(VDCDCx_VSEL_table),
.table = VDCDCx_VSEL_table,
},
{
.name = "LDO1",
- .min_uV = 1000000,
- .max_uV = 3300000,
.table_len = ARRAY_SIZE(LDO1_VSEL_table),
.table = LDO1_VSEL_table,
},
{
.name = "LDO2",
- .min_uV = 725000,
- .max_uV = 3300000,
.table_len = ARRAY_SIZE(LDO2_VSEL_table),
.table = LDO2_VSEL_table,
},
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] regulator: tps6507x: Remove unused min_uV and max_uV from struct tps_info
2012-06-05 0:39 [PATCH] regulator: tps6507x: Remove unused min_uV and max_uV from struct tps_info Axel Lin
@ 2012-06-05 10:21 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2012-06-05 10:21 UTC (permalink / raw)
To: Axel Lin; +Cc: linux-kernel, Liam Girdwood, Anuj Aggarwal
[-- Attachment #1: Type: text/plain, Size: 299 bytes --]
On Tue, Jun 05, 2012 at 08:39:52AM +0800, Axel Lin wrote:
> The min_uV and max_uV are not used in this driver.
> For table based voltage mappings, we can get min_uV and max_uV by
> info->table[0] and info->table[table_len -1].
> Thus remove min_uV and max_uV from struct tps_info.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-05 10:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-05 0:39 [PATCH] regulator: tps6507x: Remove unused min_uV and max_uV from struct tps_info Axel Lin
2012-06-05 10:21 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox