Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270800
b: refs/heads/master
c: a1ff89e
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Oct 7, 2011
1 parent f2f903d commit 3dbb0a5
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 4f6d45f121ba190f87c67503a73d8ff2ffa3e946
refs/heads/master: a1ff89ef3cd6515d378f946db5f3760089bb644e
13 changes: 13 additions & 0 deletions trunk/drivers/regulator/wm8994-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ static int wm8994_ldo2_list_voltage(struct regulator_dev *rdev,
return (selector * 100000) + 900000;
case WM8958:
return (selector * 100000) + 1000000;
case WM1811:
switch (selector) {
case 0:
return -EINVAL;
default:
return (selector * 100000) + 950000;
}
break;
default:
return -EINVAL;
}
Expand Down Expand Up @@ -170,6 +178,11 @@ static int wm8994_ldo2_set_voltage(struct regulator_dev *rdev,
case WM8958:
selector = (min_uV - 1000000) / 100000;
break;
case WM1811:
selector = (min_uV - 950000) / 100000;
if (selector == 0)
selector = 1;
break;
default:
return -EINVAL;
}
Expand Down

0 comments on commit 3dbb0a5

Please sign in to comment.