Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302135
b: refs/heads/master
c: 4af7c1d
h: refs/heads/master
i:
  302133: dc3ff89
  302131: c11dff1
  302127: c2cddf6
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Apr 1, 2012
1 parent 2fb1ab4 commit 3971cad
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: f8ee33936f07d49b8e902920e7a5950ac2118d6a
refs/heads/master: 4af7c1d313a085268d071da6729c4ed055be934f
6 changes: 3 additions & 3 deletions trunk/drivers/regulator/tps6524x-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ static int set_voltage_sel(struct regulator_dev *rdev, unsigned selector)
return write_field(hw, &info->voltage, selector);
}

static int get_voltage(struct regulator_dev *rdev)
static int get_voltage_sel(struct regulator_dev *rdev)
{
const struct supply_info *info;
struct tps6524x *hw;
Expand All @@ -490,7 +490,7 @@ static int get_voltage(struct regulator_dev *rdev)
if (WARN_ON(ret >= info->n_voltages))
return -EIO;

return info->voltages[ret];
return ret;
}

static int set_current_limit(struct regulator_dev *rdev, int min_uA,
Expand Down Expand Up @@ -575,7 +575,7 @@ static struct regulator_ops regulator_ops = {
.is_enabled = is_supply_enabled,
.enable = enable_supply,
.disable = disable_supply,
.get_voltage = get_voltage,
.get_voltage_sel = get_voltage_sel,
.set_voltage_sel = set_voltage_sel,
.list_voltage = list_voltage,
.set_current_limit = set_current_limit,
Expand Down

0 comments on commit 3971cad

Please sign in to comment.