From: Keerthy Date: Fri, 2 Jun 2017 05:21:51 +0000 (+0530) Subject: power: regulator: palmas: Add smps12 dual regulator for tps65917 X-Git-Tag: v2017.07-rc2~57^2~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=75bceb22b3ed6882daa5933c3eb353364c7a7c83;p=u-boot power: regulator: palmas: Add smps12 dual regulator for tps65917 Add smps12 dual regulator for tps65917 Signed-off-by: Keerthy Reviewed-by: Simon Glass --- diff --git a/drivers/power/regulator/palmas_regulator.c b/drivers/power/regulator/palmas_regulator.c index 399f7a5f55..841c03a504 100644 --- a/drivers/power/regulator/palmas_regulator.c +++ b/drivers/power/regulator/palmas_regulator.c @@ -377,7 +377,11 @@ static int palmas_smps_probe(struct udevice *dev) uc_pdata->ctrl_reg = palmas_smps_ctrl[type][idx]; uc_pdata->volt_reg = palmas_smps_volt[type][idx]; break; - + case 12: + idx = 0; + uc_pdata->ctrl_reg = palmas_smps_ctrl[type][idx]; + uc_pdata->volt_reg = palmas_smps_volt[type][idx]; + break; default: printf("Wrong ID for regulator\n"); }