Skip to content
Commit 81d0a6ae authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

regulator: max8998: Ensure enough delay time for max8998_set_voltage_buck_time_sel



Use DIV_ROUND_UP to prevent truncation by integer division issue.
This ensures we return enough delay time.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
parent adf6178a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment