Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302308
b: refs/heads/master
c: 68c7ff8
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed May 17, 2012
1 parent 530cda2 commit 86b9923
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 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: 0cbd6702186af44ca14d68d3fd3f3368287f4ee4
refs/heads/master: 68c7ff8f9b40bcc35abb22160bc30221477e0a89
12 changes: 0 additions & 12 deletions trunk/drivers/regulator/max8925-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,10 @@ struct max8925_regulator_info {
struct i2c_client *i2c;
struct max8925_chip *chip;

int max_uV;
int vol_reg;
int enable_reg;
};

static inline int check_range(struct max8925_regulator_info *info,
int min_uV, int max_uV)
{
if (min_uV < info->desc.min_uV || min_uV > info->max_uV)
return -EINVAL;

return 0;
}

static int max8925_set_voltage_sel(struct regulator_dev *rdev,
unsigned int selector)
{
Expand Down Expand Up @@ -177,7 +167,6 @@ static struct regulator_ops max8925_regulator_ldo_ops = {
.min_uV = min * 1000, \
.uV_step = step * 1000, \
}, \
.max_uV = max * 1000, \
.vol_reg = MAX8925_SDV##_id, \
.enable_reg = MAX8925_SDCTL##_id, \
}
Expand All @@ -194,7 +183,6 @@ static struct regulator_ops max8925_regulator_ldo_ops = {
.min_uV = min * 1000, \
.uV_step = step * 1000, \
}, \
.max_uV = max * 1000, \
.vol_reg = MAX8925_LDOVOUT##_id, \
.enable_reg = MAX8925_LDOCTL##_id, \
}
Expand Down

0 comments on commit 86b9923

Please sign in to comment.