Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302281
b: refs/heads/master
c: 3c8983b
h: refs/heads/master
i:
  302279: 73f5afe
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed May 14, 2012
1 parent e319e5b commit 65aac9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: e81dba85c6388dfabcb76cbc2b8bd02836a53ae5
refs/heads/master: 3c8983b9ac2f8bf9f23effa4f72ce814f8375397
8 changes: 4 additions & 4 deletions trunk/drivers/regulator/max8925-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static int max8925_set_voltage(struct regulator_dev *rdev,
return max8925_set_bits(info->i2c, info->vol_reg, mask, data);
}

static int max8925_get_voltage(struct regulator_dev *rdev)
static int max8925_get_voltage_sel(struct regulator_dev *rdev)
{
struct max8925_regulator_info *info = rdev_get_drvdata(rdev);
unsigned char data, mask;
Expand All @@ -90,7 +90,7 @@ static int max8925_get_voltage(struct regulator_dev *rdev)
mask = rdev->desc->n_voltages - 1;
data = ret & mask;

return max8925_list_voltage(rdev, data);
return data;
}

static int max8925_enable(struct regulator_dev *rdev)
Expand Down Expand Up @@ -162,7 +162,7 @@ static int max8925_set_dvm_disable(struct regulator_dev *rdev)
static struct regulator_ops max8925_regulator_sdv_ops = {
.list_voltage = max8925_list_voltage,
.set_voltage = max8925_set_voltage,
.get_voltage = max8925_get_voltage,
.get_voltage_sel = max8925_get_voltage_sel,
.enable = max8925_enable,
.disable = max8925_disable,
.is_enabled = max8925_is_enabled,
Expand All @@ -174,7 +174,7 @@ static struct regulator_ops max8925_regulator_sdv_ops = {
static struct regulator_ops max8925_regulator_ldo_ops = {
.list_voltage = max8925_list_voltage,
.set_voltage = max8925_set_voltage,
.get_voltage = max8925_get_voltage,
.get_voltage_sel = max8925_get_voltage_sel,
.enable = max8925_enable,
.disable = max8925_disable,
.is_enabled = max8925_is_enabled,
Expand Down

0 comments on commit 65aac9c

Please sign in to comment.