Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312527
b: refs/heads/master
c: ea7e330
h: refs/heads/master
i:
  312525: 07b4cf7
  312523: b42435a
  312519: 3da2a63
  312511: 663a7a1
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Jun 11, 2012
1 parent 51aa41f commit 42202f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 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: e4a99938706b080b562055f83bf29e28ce0770ad
refs/heads/master: ea7e33045458ffd6d13175031527b6527807633c
13 changes: 5 additions & 8 deletions trunk/drivers/regulator/twl-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,13 +577,6 @@ static struct regulator_ops twl6030coresmps_ops = {
.get_voltage = twl6030coresmps_get_voltage,
};

static int twl6030ldo_list_voltage(struct regulator_dev *rdev, unsigned index)
{
struct twlreg_info *info = rdev_get_drvdata(rdev);

return ((info->min_mV + (index * 100)) * 1000);
}

static int
twl6030ldo_set_voltage(struct regulator_dev *rdev, int min_uV, int max_uV,
unsigned *selector)
Expand Down Expand Up @@ -621,7 +614,7 @@ static int twl6030ldo_get_voltage(struct regulator_dev *rdev)
}

static struct regulator_ops twl6030ldo_ops = {
.list_voltage = twl6030ldo_list_voltage,
.list_voltage = regulator_list_voltage_linear,

.set_voltage = twl6030ldo_set_voltage,
.get_voltage = twl6030ldo_get_voltage,
Expand Down Expand Up @@ -959,6 +952,8 @@ static struct twlreg_info TWL6030_INFO_##label = { \
.ops = &twl6030ldo_ops, \
.type = REGULATOR_VOLTAGE, \
.owner = THIS_MODULE, \
.min_uV = min_mVolts * 1000, \
.uV_step = 100 * 1000, \
}, \
}

Expand All @@ -974,6 +969,8 @@ static struct twlreg_info TWL6025_INFO_##label = { \
.ops = &twl6030ldo_ops, \
.type = REGULATOR_VOLTAGE, \
.owner = THIS_MODULE, \
.min_uV = min_mVolts * 1000, \
.uV_step = 100 * 1000, \
}, \
}

Expand Down

0 comments on commit 42202f9

Please sign in to comment.