diff options
| author | Axel Lin <[email protected]> | 2021-05-23 07:10:45 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2021-05-24 08:50:23 +0000 |
| commit | 4c668630bf8ea90a041fc69c9984486e0f56682d (patch) | |
| tree | a03889a8e8bc5eacf9d67e28e256eead9944d6ac /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | regulator: bd70528: Fix off-by-one for buck123 .n_voltages setting (diff) | |
| download | kernel-4c668630bf8ea90a041fc69c9984486e0f56682d.tar.gz kernel-4c668630bf8ea90a041fc69c9984486e0f56682d.zip | |
regulator: bd71828: Fix .n_voltages settings
Current .n_voltages settings do not cover the latest 2 valid selectors,
so it fails to set voltage for the hightest voltage support.
The latest linear range has step_uV = 0, so it does not matter if we
count the .n_voltages to maximum selector + 1 or the first selector of
latest linear range + 1.
To simplify calculating the n_voltages, let's just set the
.n_voltages to maximum selector + 1.
Fixes: 522498f8cb8c ("regulator: bd71828: Basic support for ROHM bd71828 PMIC regulators")
Signed-off-by: Axel Lin <[email protected]>
Reviewed-by: Matti Vaittinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
