Searched hist:"475 a5d85" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/regulator/ |
H A D | pf8x00-regulator.c | 475a5d85 Thu Jan 14 11:47:14 CST 2021 Adrien Grassein <adrien.grassein@gmail.com> 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>
|