Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302288
b: refs/heads/master
c: 0f65402
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed May 14, 2012
1 parent c70fdd8 commit 4ee031d
Show file tree
Hide file tree
Showing 2 changed files with 4 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: be15411d97b6b9b2883b7f1ec52ef03bc770a6d4
refs/heads/master: 0f65402b2593cae129dcdb67f6ad79d5dc2ac017
6 changes: 3 additions & 3 deletions trunk/drivers/regulator/max8649.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static int max8649_list_voltage(struct regulator_dev *rdev, unsigned index)
return (MAX8649_DCDC_VMIN + index * MAX8649_DCDC_STEP);
}

static int max8649_get_voltage(struct regulator_dev *rdev)
static int max8649_get_voltage_sel(struct regulator_dev *rdev)
{
struct max8649_regulator_info *info = rdev_get_drvdata(rdev);
unsigned int val;
Expand All @@ -87,7 +87,7 @@ static int max8649_get_voltage(struct regulator_dev *rdev)
if (ret != 0)
return ret;
data = (unsigned char)val & MAX8649_VOL_MASK;
return max8649_list_voltage(rdev, data);
return data;
}

static int max8649_set_voltage(struct regulator_dev *rdev,
Expand Down Expand Up @@ -196,7 +196,7 @@ static unsigned int max8649_get_mode(struct regulator_dev *rdev)

static struct regulator_ops max8649_dcdc_ops = {
.set_voltage = max8649_set_voltage,
.get_voltage = max8649_get_voltage,
.get_voltage_sel = max8649_get_voltage_sel,
.list_voltage = max8649_list_voltage,
.enable = max8649_enable,
.disable = max8649_disable,
Expand Down

0 comments on commit 4ee031d

Please sign in to comment.