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)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 10 Jan 2013 12:55:49 +0000 (12:55 +0000)
commit81d0a6ae7befb24c06f4aa4856af7f8d1f612171
tree324aadeae9a1b561e83a7d930ef5f617a52270b5
parentadf6178ad5552a7f2f742a8c85343c50f080c412
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: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
drivers/regulator/max8998.c