Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348796
b: refs/heads/master
c: 81d0a6a
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Jan 10, 2013
1 parent b4b6251 commit 80557d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: adf6178ad5552a7f2f742a8c85343c50f080c412
refs/heads/master: 81d0a6ae7befb24c06f4aa4856af7f8d1f612171
2 changes: 1 addition & 1 deletion trunk/drivers/regulator/max8998.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ static int max8998_set_voltage_buck_time_sel(struct regulator_dev *rdev,

difference = (new_selector - old_selector) * desc->step / 1000;
if (difference > 0)
return difference / ((val & 0x0f) + 1);
return DIV_ROUND_UP(difference, (val & 0x0f) + 1);

return 0;
}
Expand Down

0 comments on commit 80557d2

Please sign in to comment.