diff options
Diffstat (limited to 'drivers/regulator/max8649.c')
-rw-r--r-- | drivers/regulator/max8649.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max8649.c b/drivers/regulator/max8649.c index 30eb9e54f7ec..1062cf9f02dc 100644 --- a/drivers/regulator/max8649.c +++ b/drivers/regulator/max8649.c | |||
@@ -221,7 +221,7 @@ static int max8649_enable_time(struct regulator_dev *rdev) | |||
221 | ret = (ret & MAX8649_RAMP_MASK) >> 5; | 221 | ret = (ret & MAX8649_RAMP_MASK) >> 5; |
222 | rate = (32 * 1000) >> ret; /* uV/uS */ | 222 | rate = (32 * 1000) >> ret; /* uV/uS */ |
223 | 223 | ||
224 | return (voltage / rate); | 224 | return DIV_ROUND_UP(voltage, rate); |
225 | } | 225 | } |
226 | 226 | ||
227 | static int max8649_set_mode(struct regulator_dev *rdev, unsigned int mode) | 227 | static int max8649_set_mode(struct regulator_dev *rdev, unsigned int mode) |