Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310651
b: refs/heads/master
c: 0bdc81e
h: refs/heads/master
i:
  310649: ff49130
  310647: f174393
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Jun 7, 2012
1 parent 9a70bc1 commit 69abdd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 61663171bea0ccb499f0818234c5be7ea6c4c791
refs/heads/master: 0bdc81e4e944781a2bcc971f9e3cf24ac7030939
3 changes: 3 additions & 0 deletions trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2050,6 +2050,9 @@ int regulator_map_voltage_linear(struct regulator_dev *rdev,
return -EINVAL;
}

if (min_uV < rdev->desc->min_uV)
min_uV = rdev->desc->min_uV;

ret = DIV_ROUND_UP(min_uV - rdev->desc->min_uV, rdev->desc->uV_step);
if (ret < 0)
return ret;
Expand Down

0 comments on commit 69abdd9

Please sign in to comment.