aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/da9052-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2021-06-22 12:33:29 +0800
committerMark Brown <broonie@kernel.org>2021-06-22 12:47:18 +0100
commit9bc146acc33125cd9f365b92f1c02ec89f639977 (patch)
treefcfb94d778a51983fd5ef4f7cab91d2c320ee4d2 /drivers/regulator/da9052-regulator.c
parentMerge series "regulator: qcom,rpmh-regulator: Add support for pmic available on SA8155p-adp board" from Bhupesh Sharma <bhupesh.sharma@linaro.org>: (diff)
downloadlinux-dev-9bc146acc33125cd9f365b92f1c02ec89f639977.tar.xz
linux-dev-9bc146acc33125cd9f365b92f1c02ec89f639977.zip
regulator: hi6421v600: Fix setting wrong driver_data
Current code set "config.driver_data = sreg" but sreg only init the mutex, the othere fields are just zero. Fix it by pass *info to config.driver_data so each regulator can get corresponding data by rdev_get_drvdata(). Separate enable_mutex from struct hi6421_spmi_reg_info since only need one mutex for the driver. Fixes: d2dfd50a0b57 ("staging: hikey9xx: hi6421v600-regulator: move LDO config from DT") Signed-off-by: Axel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210622043329.392072-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/da9052-regulator.c')
0 files changed, 0 insertions, 0 deletions