Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312501
b: refs/heads/master
c: f2d103a
h: refs/heads/master
i:
  312499: 04eef4a
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Jun 3, 2012
1 parent 211b621 commit 4cc49fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 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: 0713e6abf398327b6813398d3583e0907953e457
refs/heads/master: f2d103add158af4c95223a1b576cc0cc6a41a18b
14 changes: 4 additions & 10 deletions trunk/drivers/regulator/wm8994-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,22 +77,14 @@ static int wm8994_ldo_enable_time(struct regulator_dev *rdev)
return 3000;
}

static int wm8994_ldo1_list_voltage(struct regulator_dev *rdev,
unsigned int selector)
{
if (selector > WM8994_LDO1_MAX_SELECTOR)
return -EINVAL;

return (selector * 100000) + 2400000;
}

static struct regulator_ops wm8994_ldo1_ops = {
.enable = wm8994_ldo_enable,
.disable = wm8994_ldo_disable,
.is_enabled = wm8994_ldo_is_enabled,
.enable_time = wm8994_ldo_enable_time,

.list_voltage = wm8994_ldo1_list_voltage,
.list_voltage = regulator_list_voltage_linear,
.map_voltage = regulator_map_voltage_linear,
.get_voltage_sel = regulator_get_voltage_sel_regmap,
.set_voltage_sel = regulator_set_voltage_sel_regmap,
};
Expand Down Expand Up @@ -143,6 +135,8 @@ static const struct regulator_desc wm8994_ldo_desc[] = {
.vsel_reg = WM8994_LDO_1,
.vsel_mask = WM8994_LDO1_VSEL_MASK,
.ops = &wm8994_ldo1_ops,
.min_uV = 2400000,
.uV_step = 100000,
.owner = THIS_MODULE,
},
{
Expand Down

0 comments on commit 4cc49fe

Please sign in to comment.