Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343217
b: refs/heads/master
c: 7fa8a59
h: refs/heads/master
i:
  343215: 67cb9d0
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Dec 7, 2012
1 parent c15bbbf commit 7ce198a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 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: bf0caae3036563ef84d1dcb7b2c7fcbda59a889d
refs/heads/master: 7fa8a5975784cce646b3763e5d9957f8d688c9ce
11 changes: 2 additions & 9 deletions trunk/drivers/regulator/tps80031-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,14 +284,6 @@ static int tps80031_ldo_get_voltage_sel(struct regulator_dev *rdev)
return vsel & rdev->desc->vsel_mask;
}

static int tps80031_ldo_list_voltage(struct regulator_dev *rdev, unsigned sel)
{
if (sel == 0)
return 0;
else
return regulator_list_voltage_linear(rdev, sel - 1);
}

static int tps80031_vbus_is_enabled(struct regulator_dev *rdev)
{
struct tps80031_regulator *ri = rdev_get_drvdata(rdev);
Expand Down Expand Up @@ -398,7 +390,7 @@ static struct regulator_ops tps80031_dcdc_ops = {
};

static struct regulator_ops tps80031_ldo_ops = {
.list_voltage = tps80031_ldo_list_voltage,
.list_voltage = regulator_list_voltage_linear,
.set_voltage_sel = tps80031_ldo_set_voltage_sel,
.get_voltage_sel = tps80031_ldo_get_voltage_sel,
.enable = tps80031_reg_enable,
Expand Down Expand Up @@ -465,6 +457,7 @@ static struct regulator_ops tps80031_ext_reg_ops = {
.type = REGULATOR_VOLTAGE, \
.min_uV = 1000000, \
.uV_step = 100000, \
.linear_min_sel = 1, \
.n_voltages = 25, \
.vsel_mask = LDO_VSEL_MASK, \
.enable_time = 500, \
Expand Down

0 comments on commit 7ce198a

Please sign in to comment.