Skip to content

Commit 734008e

Browse files
AxelLinbroonie
authored andcommitted
regulator: max77620: Fix regulator info setting for max20024
Current code always set pmic->rinfo[id] = &max77620_regs_info[id]; It should set to either max77620_regs_info or max20024_regs_info depends on the chip_id. Signed-off-by: Axel Lin <[email protected]> Reviewed-by: Dmitry Osipenko <[email protected]> Tested-by: Dmitry Osipenko <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 78927aa commit 734008e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/max77620-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ static int max77620_regulator_probe(struct platform_device *pdev)
803803
continue;
804804

805805
rdesc = &rinfo[id].desc;
806-
pmic->rinfo[id] = &max77620_regs_info[id];
806+
pmic->rinfo[id] = &rinfo[id];
807807
pmic->enable_power_mode[id] = MAX77620_POWER_MODE_NORMAL;
808808
pmic->reg_pdata[id].active_fps_src = -1;
809809
pmic->reg_pdata[id].active_fps_pd_slot = -1;

0 commit comments

Comments
 (0)