* [PATCH] regulator: tps65023: Set n_voltages to 1 for fixed voltage
@ 2012-06-14 2:22 Axel Lin
2012-06-17 19:56 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2012-06-14 2:22 UTC (permalink / raw)
To: linux-kernel; +Cc: Anuj Aggarwal, Mark Brown, Liam Girdwood
For fixed voltage, the n_voltages should be 1 rather than 0.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/regulator/tps65023-regulator.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/regulator/tps65023-regulator.c b/drivers/regulator/tps65023-regulator.c
index f841bd0..df8b70d 100644
--- a/drivers/regulator/tps65023-regulator.c
+++ b/drivers/regulator/tps65023-regulator.c
@@ -324,7 +324,10 @@ static int __devinit tps_65023_probe(struct i2c_client *client,
tps->desc[i].name = info->name;
tps->desc[i].id = i;
- tps->desc[i].n_voltages = info->table_len;
+ if (info->fixed)
+ tps->desc[i].n_voltages = 1;
+ else
+ tps->desc[i].n_voltages = info->table_len;
tps->desc[i].ops = (i > TPS65023_DCDC_3 ?
&tps65023_ldo_ops : &tps65023_dcdc_ops);
tps->desc[i].type = REGULATOR_VOLTAGE;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] regulator: tps65023: Set n_voltages to 1 for fixed voltage
2012-06-14 2:22 [PATCH] regulator: tps65023: Set n_voltages to 1 for fixed voltage Axel Lin
@ 2012-06-17 19:56 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2012-06-17 19:56 UTC (permalink / raw)
To: Axel Lin; +Cc: linux-kernel, Anuj Aggarwal, Liam Girdwood
[-- Attachment #1: Type: text/plain, Size: 139 bytes --]
On Thu, Jun 14, 2012 at 10:22:59AM +0800, Axel Lin wrote:
> For fixed voltage, the n_voltages should be 1 rather than 0.
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-17 19:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-14 2:22 [PATCH] regulator: tps65023: Set n_voltages to 1 for fixed voltage Axel Lin
2012-06-17 19:56 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox