Commit 1ea718cd authored by Axel Lin's avatar Axel Lin Committed by Connor O'Brien
Browse files

UPSTREAM: regulator: scmi: Fix off-by-one for linear regulators .n_voltages setting



For linear regulators, the .n_voltages is (max_uv - min_uv) / uv_step + 1.

Fixes: 0fbeae70 ("regulator: add SCMI driver")
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Reviewed-by: default avatarCristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20210521073020.1944981-1-axel.lin@ingics.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
(cherry picked from commit 36cb555f)
Bug: 187129171
Signed-off-by: default avatarConnor O'Brien <connoro@google.com>
Change-Id: I443aedf5fb2f0062e9e4926596ba649997f0afc9
parent be7c2833
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment