]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
regulator: max8998: Ensure enough delay time for max8998_set_voltage_buck_time_sel
authorAxel Lin <axel.lin@ingics.com>
Wed, 9 Jan 2013 11:34:57 +0000 (19:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:46:39 +0000 (08:46 -0800)
commit0e3f380e4da94e19a2e32fa00a144bed52aa561a
treef7ec76a466e1341411f97ab9ef930204885313cd
parentd7fe0a4e2263fa4c01be523b983b5781edb19ae3
regulator: max8998: Ensure enough delay time for max8998_set_voltage_buck_time_sel

commit 81d0a6ae7befb24c06f4aa4856af7f8d1f612171 upstream.

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

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/regulator/max8998.c