summaryrefslogtreecommitdiff
path: root/drivers/regulator/bd718x7-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2021-06-18 17:14:11 +0300
committerMark Brown <broonie@kernel.org>2021-06-23 14:34:40 +0300
commita336dc8f683e5be794186b5643cd34cb28dd2c53 (patch)
tree95333d8b37822f21602b883c199fefe30c40af68 /drivers/regulator/bd718x7-regulator.c
parent9bc146acc33125cd9f365b92f1c02ec89f639977 (diff)
downloadlinux-a336dc8f683e5be794186b5643cd34cb28dd2c53.tar.xz
regulator: da9052: Ensure enough delay time for .set_voltage_time_sel
Use DIV_ROUND_UP to prevent truncation by integer division issue. This ensures we return enough delay time. Also fix returning negative value when new_sel < old_sel. Signed-off-by: Axel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210618141412.4014912-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/bd718x7-regulator.c')
0 files changed, 0 insertions, 0 deletions