projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'kvmarm-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmar...
[linux-2.6-microblaze.git]
/
drivers
/
regulator
/
da9052-regulator.c
diff --git
a/drivers/regulator/da9052-regulator.c
b/drivers/regulator/da9052-regulator.c
index
e18d291
..
23fa429
100644
(file)
--- a/
drivers/regulator/da9052-regulator.c
+++ b/
drivers/regulator/da9052-regulator.c
@@
-250,7
+250,8
@@
static int da9052_regulator_set_voltage_time_sel(struct regulator_dev *rdev,
case DA9052_ID_BUCK3:
case DA9052_ID_LDO2:
case DA9052_ID_LDO3:
- ret = (new_sel - old_sel) * info->step_uV / 6250;
+ ret = DIV_ROUND_UP(abs(new_sel - old_sel) * info->step_uV,
+ 6250);
break;
}