* [RESEND][PATCH 1/3] regulator: twl: Remove VDD1_VSEL_table and VDD2_VSEL_table
@ 2013-04-11 15:18 Axel Lin
2013-04-11 15:19 ` [RESEND][PATCH 2/3] regulator: twl: Convert fixed voltage to use regulator_list_voltage_linear Axel Lin
2013-04-11 15:20 ` [RESEND][PATCH 3/3] regulator: twl: Remove TWL6030_FIXED_RESOURCE Axel Lin
0 siblings, 2 replies; 4+ messages in thread
From: Axel Lin @ 2013-04-11 15:18 UTC (permalink / raw)
To: Mark Brown; +Cc: Tero Kristo, Aaro Koskinen, Liam Girdwood, linux-kernel
Since commit ba305e31 "regulator: twl: fix twl4030 support for smps regulators",
VDD1_VSEL_table and VDD2_VSEL_table are not used any more. Remove them.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Tero Kristo <t-kristo@ti.com>
---
drivers/regulator/twl-regulator.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c
index f705d25..d62604c0 100644
--- a/drivers/regulator/twl-regulator.c
+++ b/drivers/regulator/twl-regulator.c
@@ -441,12 +441,6 @@ static const u16 VSIM_VSEL_table[] = {
static const u16 VDAC_VSEL_table[] = {
1200, 1300, 1800, 1800,
};
-static const u16 VDD1_VSEL_table[] = {
- 800, 1450,
-};
-static const u16 VDD2_VSEL_table[] = {
- 800, 1450, 1500,
-};
static const u16 VIO_VSEL_table[] = {
1800, 1850,
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* [RESEND][PATCH 2/3] regulator: twl: Convert fixed voltage to use regulator_list_voltage_linear
2013-04-11 15:18 [RESEND][PATCH 1/3] regulator: twl: Remove VDD1_VSEL_table and VDD2_VSEL_table Axel Lin
@ 2013-04-11 15:19 ` Axel Lin
2013-04-11 15:20 ` [RESEND][PATCH 3/3] regulator: twl: Remove TWL6030_FIXED_RESOURCE Axel Lin
1 sibling, 0 replies; 4+ messages in thread
From: Axel Lin @ 2013-04-11 15:19 UTC (permalink / raw)
To: Mark Brown; +Cc: Tero Kristo, Aaro Koskinen, Liam Girdwood, linux-kernel
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/regulator/twl-regulator.c | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c
index d62604c0..2b3dc5b 100644
--- a/drivers/regulator/twl-regulator.c
+++ b/drivers/regulator/twl-regulator.c
@@ -612,15 +612,8 @@ static struct regulator_ops twl6030ldo_ops = {
/*
* Fixed voltage LDOs don't have a VSEL field to update.
*/
-static int twlfixed_list_voltage(struct regulator_dev *rdev, unsigned index)
-{
- struct twlreg_info *info = rdev_get_drvdata(rdev);
-
- return info->min_mV * 1000;
-}
-
static struct regulator_ops twl4030fixed_ops = {
- .list_voltage = twlfixed_list_voltage,
+ .list_voltage = regulator_list_voltage_linear,
.enable = twl4030reg_enable,
.disable = twl4030reg_disable,
@@ -632,7 +625,7 @@ static struct regulator_ops twl4030fixed_ops = {
};
static struct regulator_ops twl6030fixed_ops = {
- .list_voltage = twlfixed_list_voltage,
+ .list_voltage = regulator_list_voltage_linear,
.enable = twl6030reg_enable,
.disable = twl6030reg_disable,
@@ -935,6 +928,7 @@ static const struct twlreg_info TWLFIXED_INFO_##label = { \
.name = #label, \
.id = family##_REG_##label, \
.n_voltages = 1, \
+ .min_uV = mVolts * 1000, \
.ops = &operations, \
.type = REGULATOR_VOLTAGE, \
.owner = THIS_MODULE, \
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* [RESEND][PATCH 3/3] regulator: twl: Remove TWL6030_FIXED_RESOURCE
2013-04-11 15:18 [RESEND][PATCH 1/3] regulator: twl: Remove VDD1_VSEL_table and VDD2_VSEL_table Axel Lin
2013-04-11 15:19 ` [RESEND][PATCH 2/3] regulator: twl: Convert fixed voltage to use regulator_list_voltage_linear Axel Lin
@ 2013-04-11 15:20 ` Axel Lin
2013-04-11 16:42 ` Mark Brown
1 sibling, 1 reply; 4+ messages in thread
From: Axel Lin @ 2013-04-11 15:20 UTC (permalink / raw)
To: Mark Brown; +Cc: Tero Kristo, Aaro Koskinen, Liam Girdwood, linux-kernel
TWL6030_FIXED_RESOURCE is not used now, remove it.
TWL6030_FIXED_RESOURCE is not used since commit e76ab829cc
"regulator: twl: Remove references to the twl4030 regulator"
twl6030_fixed_resource is removed by commit 029dd3cef
"regulator: twl: Remove another unused variable warning".
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/regulator/twl-regulator.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c
index 2b3dc5b..611e73e 100644
--- a/drivers/regulator/twl-regulator.c
+++ b/drivers/regulator/twl-regulator.c
@@ -936,19 +936,6 @@ static const struct twlreg_info TWLFIXED_INFO_##label = { \
}, \
}
-#define TWL6030_FIXED_RESOURCE(label, offset, turnon_delay) \
-static struct twlreg_info TWLRES_INFO_##label = { \
- .base = offset, \
- .desc = { \
- .name = #label, \
- .id = TWL6030_REG_##label, \
- .ops = &twl6030_fixed_resource, \
- .type = REGULATOR_VOLTAGE, \
- .owner = THIS_MODULE, \
- .enable_time = turnon_delay, \
- }, \
- }
-
#define TWL6025_ADJUSTABLE_SMPS(label, offset) \
static const struct twlreg_info TWLSMPS_INFO_##label = { \
.base = offset, \
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [RESEND][PATCH 3/3] regulator: twl: Remove TWL6030_FIXED_RESOURCE
2013-04-11 15:20 ` [RESEND][PATCH 3/3] regulator: twl: Remove TWL6030_FIXED_RESOURCE Axel Lin
@ 2013-04-11 16:42 ` Mark Brown
0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2013-04-11 16:42 UTC (permalink / raw)
To: Axel Lin; +Cc: Tero Kristo, Aaro Koskinen, Liam Girdwood, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 494 bytes --]
On Thu, Apr 11, 2013 at 11:20:50PM +0800, Axel Lin wrote:
> TWL6030_FIXED_RESOURCE is not used now, remove it.
>
> TWL6030_FIXED_RESOURCE is not used since commit e76ab829cc
> "regulator: twl: Remove references to the twl4030 regulator"
>
> twl6030_fixed_resource is removed by commit 029dd3cef
> "regulator: twl: Remove another unused variable warning".
OK, they had actually been applied but the push failed as there was a
similarly named tag there as well. Pushed now thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-11 16:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-11 15:18 [RESEND][PATCH 1/3] regulator: twl: Remove VDD1_VSEL_table and VDD2_VSEL_table Axel Lin
2013-04-11 15:19 ` [RESEND][PATCH 2/3] regulator: twl: Convert fixed voltage to use regulator_list_voltage_linear Axel Lin
2013-04-11 15:20 ` [RESEND][PATCH 3/3] regulator: twl: Remove TWL6030_FIXED_RESOURCE Axel Lin
2013-04-11 16:42 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox