Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302119
b: refs/heads/master
c: 44a7cda
h: refs/heads/master
i:
  302117: 4ca3a73
  302115: ded50f5
  302111: 8ca496a
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Apr 1, 2012
1 parent 8fb28ba commit b2d3f79
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: 4c60165dcb68f56e97b0a1b8f5233b3a486af353
refs/heads/master: 44a7cdabf792028f88de5ecc2baf0c1a8207aa27
8 changes: 4 additions & 4 deletions trunk/drivers/regulator/tps6586x-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static int tps6586x_ldo_set_voltage(struct regulator_dev *rdev,
selector);
}

static int tps6586x_ldo_get_voltage(struct regulator_dev *rdev)
static int tps6586x_get_voltage_sel(struct regulator_dev *rdev)
{
struct tps6586x_regulator *ri = rdev_get_drvdata(rdev);
struct device *parent = to_tps6586x_dev(rdev);
Expand All @@ -141,7 +141,7 @@ static int tps6586x_ldo_get_voltage(struct regulator_dev *rdev)
if (val >= ri->desc.n_voltages)
BUG();

return ri->voltages[val] * 1000;
return val;
}

static int tps6586x_dvm_set_voltage(struct regulator_dev *rdev,
Expand Down Expand Up @@ -193,7 +193,7 @@ static int tps6586x_regulator_is_enabled(struct regulator_dev *rdev)

static struct regulator_ops tps6586x_regulator_ldo_ops = {
.list_voltage = tps6586x_ldo_list_voltage,
.get_voltage = tps6586x_ldo_get_voltage,
.get_voltage_sel = tps6586x_get_voltage_sel,
.set_voltage = tps6586x_ldo_set_voltage,

.is_enabled = tps6586x_regulator_is_enabled,
Expand All @@ -203,7 +203,7 @@ static struct regulator_ops tps6586x_regulator_ldo_ops = {

static struct regulator_ops tps6586x_regulator_dvm_ops = {
.list_voltage = tps6586x_ldo_list_voltage,
.get_voltage = tps6586x_ldo_get_voltage,
.get_voltage_sel = tps6586x_get_voltage_sel,
.set_voltage = tps6586x_dvm_set_voltage,

.is_enabled = tps6586x_regulator_is_enabled,
Expand Down

0 comments on commit b2d3f79

Please sign in to comment.