Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252186
b: refs/heads/master
c: cb220d1
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Liam Girdwood committed May 27, 2011
1 parent 9093034 commit 5b963bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 5ccee4ae8eab957ab6d534283db5bd27703dba03
refs/heads/master: cb220d16f91f8d5fa1450c7af17e028e8cb3f0f1
8 changes: 5 additions & 3 deletions trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1886,12 +1886,14 @@ static int _regulator_get_voltage(struct regulator_dev *rdev)
if (sel < 0)
return sel;
ret = rdev->desc->ops->list_voltage(rdev, sel);
}
if (rdev->desc->ops->get_voltage)
} else if (rdev->desc->ops->get_voltage) {
ret = rdev->desc->ops->get_voltage(rdev);
else
} else {
return -EINVAL;
}

if (ret < 0)
return ret;
return ret - rdev->constraints->uV_offset;
}

Expand Down

0 comments on commit 5b963bf

Please sign in to comment.