Skip to content
Unverified Commit 475a5d85 authored by Adrien Grassein's avatar Adrien Grassein Committed by Mark Brown
Browse files

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: default avatarAdrien Grassein <adrien.grassein@gmail.com>
Link: https://lore.kernel.org/r/20210114174714.122561-7-adrien.grassein@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 35a93349
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment