aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/axp20x-regulator.c
diff options
context:
space:
mode:
authorAdrien Grassein <adrien.grassein@gmail.com>2021-01-14 18:47:14 +0100
committerMark Brown <broonie@kernel.org>2021-01-15 14:16:15 +0000
commit475a5d85ff62f7ca73f51f23977e7e3ec8c9f906 (patch)
tree678452b31da47e204974d71a466ce3655a89adab /drivers/regulator/axp20x-regulator.c
parentregulator: pf8x00: use linear range for buck 1-6 (diff)
downloadlinux-dev-475a5d85ff62f7ca73f51f23977e7e3ec8c9f906.tar.xz
linux-dev-475a5d85ff62f7ca73f51f23977e7e3ec8c9f906.zip
regulator: pf8x00: fix nxp,phase-shift
Fix the ternary condition which is a bad coding style in the kernel I also remove the defering configuration of the nxp,phase-shift. The configuration is now done at parsing time. It save some memory and it's better for comprehension. I also use the OTP default configuration when the parameter is wrong or not specified. I think that it's better to use the default configuration from the chip than an arbitrary value. Signed-off-by: Adrien Grassein <adrien.grassein@gmail.com> Link: https://lore.kernel.org/r/20210114174714.122561-7-adrien.grassein@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/axp20x-regulator.c')
0 files changed, 0 insertions, 0 deletions