diff options
author | Axel Lin <axel.lin@ingics.com> | 2019-04-22 13:35:31 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-25 20:05:43 +0100 |
commit | 734008e714d8c757613c43ff57c1bf7ef1bb5b5d (patch) | |
tree | d6009ef353919b5147a21b5fbcafab346eb16b32 | |
parent | 78927aa40bc82f32de07323ddc1c9de07ac68180 (diff) | |
download | linux-734008e714d8c757613c43ff57c1bf7ef1bb5b5d.tar.gz linux-734008e714d8c757613c43ff57c1bf7ef1bb5b5d.tar.bz2 linux-734008e714d8c757613c43ff57c1bf7ef1bb5b5d.zip |
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 <axel.lin@ingics.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/regulator/max77620-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max77620-regulator.c b/drivers/regulator/max77620-regulator.c index 1607ac673e44..0ad91a7f9cb9 100644 --- a/drivers/regulator/max77620-regulator.c +++ b/drivers/regulator/max77620-regulator.c @@ -803,7 +803,7 @@ static int max77620_regulator_probe(struct platform_device *pdev) continue; rdesc = &rinfo[id].desc; - pmic->rinfo[id] = &max77620_regs_info[id]; + pmic->rinfo[id] = &rinfo[id]; pmic->enable_power_mode[id] = MAX77620_POWER_MODE_NORMAL; pmic->reg_pdata[id].active_fps_src = -1; pmic->reg_pdata[id].active_fps_pd_slot = -1; |