projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c705742
)
regulator: tps65023: Set n_voltages to 1 for fixed voltage
author
Axel Lin
<axel.lin@gmail.com>
Thu, 14 Jun 2012 02:22:59 +0000
(10:22 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Sun, 17 Jun 2012 19:56:01 +0000
(20:56 +0100)
For fixed voltage, the n_voltages should be 1 rather than 0.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/tps65023-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/tps65023-regulator.c
b/drivers/regulator/tps65023-regulator.c
index f841bd0db6aabe523d5c4c8089743c448c72138f..df8b70d76f9e3a05453a60d2fa4b2f784eeb922a 100644
(file)
--- 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;