mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
regulator: palmas: Fix smps6 - smps9 indices
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>
This commit is contained in:
parent
4985012b73
commit
3064aa7009
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ static int palmas_smps_probe(struct udevice *dev)
|
||||||
case 8:
|
case 8:
|
||||||
case 9:
|
case 9:
|
||||||
case 10:
|
case 10:
|
||||||
idx = dev->driver_data - 4;
|
idx = dev->driver_data - 3;
|
||||||
uc_pdata->ctrl_reg = palmas_smps_ctrl[type][idx];
|
uc_pdata->ctrl_reg = palmas_smps_ctrl[type][idx];
|
||||||
uc_pdata->volt_reg = palmas_smps_volt[type][idx];
|
uc_pdata->volt_reg = palmas_smps_volt[type][idx];
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue