Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302245
b: refs/heads/master
c: c245c08
h: refs/heads/master
i:
  302243: ba4f5f6
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Apr 23, 2012
1 parent 9b52100 commit d55b559
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 94e85a3c5d702a4ce96b7a9b883c949a08ebd93c
refs/heads/master: c245c087c50eabe284b22f7d5a8abc12427d29a7
5 changes: 1 addition & 4 deletions trunk/drivers/regulator/max8997.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,7 @@ static int max8997_reg_is_enabled(struct regulator_dev *rdev)
u8 val;

ret = max8997_get_enable_register(rdev, &reg, &mask, &pattern);
if (ret == -EINVAL)
return 1; /* "not controllable" */
else if (ret)
if (ret)
return ret;

ret = max8997_read_reg(i2c, reg, &val);
Expand Down Expand Up @@ -887,7 +885,6 @@ static struct regulator_ops max8997_charger_ops = {
};

static struct regulator_ops max8997_charger_fixedstate_ops = {
.is_enabled = max8997_reg_is_enabled,
.get_current_limit = max8997_get_current_limit,
.set_current_limit = max8997_set_current_limit,
};
Expand Down

0 comments on commit d55b559

Please sign in to comment.