projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4985012
)
regulator: palmas: Fix smps6 - smps9 indices
author
Keerthy
<j-keerthy@ti.com>
Fri, 3 Feb 2017 11:34:08 +0000
(17:04 +0530)
committer
Tom Rini
<trini@konsulko.com>
Wed, 8 Feb 2017 21:24:27 +0000
(16:24 -0500)
The array indices used currently are dispalaced by 1 for
SMPS6 through SMPS10 in the respective places of voltage and ctrl
arrays hence fix the same as to assign the right voltage and ctrl
registers.
Signed-off-by: Keerthy <j-keerthy@ti.com>
drivers/power/regulator/palmas_regulator.c
patch
|
blob
|
history
diff --git
a/drivers/power/regulator/palmas_regulator.c
b/drivers/power/regulator/palmas_regulator.c
index
cce7cd2
..
399f7a5
100644
(file)
--- a/
drivers/power/regulator/palmas_regulator.c
+++ b/
drivers/power/regulator/palmas_regulator.c
@@
-356,7
+356,7
@@
static int palmas_smps_probe(struct udevice *dev)
case 8:
case 9:
case 10:
- idx = dev->driver_data -
4
;
+ idx = dev->driver_data -
3
;
uc_pdata->ctrl_reg = palmas_smps_ctrl[type][idx];
uc_pdata->volt_reg = palmas_smps_volt[type][idx];
break;