]> git.karo-electronics.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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Feb 2013 04:33:28 +0000 (04:33 +0000)
commite8d9897ff064b1683c11c15ea1296a67a45d77b0
tree872e87940c7513f402236d75aefdd36e48f36d94
parent5b7d898a1904e32b640de3bed57d9646fe1f69ee
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>
[bwh: Backported to 3.2: delay is done by driver, not returned to the caller]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/regulator/max8998.c