Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330513
b: refs/heads/master
c: b59c93c
h: refs/heads/master
i:
  330511: b9b0ef4
v: v3
  • Loading branch information
Kim, Milo authored and Anton Vorontsov committed Sep 21, 2012
1 parent f978162 commit 2b3f27e
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 91a696330ce4137eef7ad5712c9269a52dc261d4
refs/heads/master: b59c93c0090d14556d988607e5bdb297d6e380a7
7 changes: 4 additions & 3 deletions trunk/drivers/power/lp8727_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,10 @@ static int lp8727_charger_get_property(struct power_supply *psy,
{
struct lp8727_chg *pchg = dev_get_drvdata(psy->dev->parent);

if (psp == POWER_SUPPLY_PROP_ONLINE)
val->intval = lp8727_is_charger_attached(psy->name,
pchg->devid);
if (psp != POWER_SUPPLY_PROP_ONLINE)
return -EINVAL;

val->intval = lp8727_is_charger_attached(psy->name, pchg->devid);

return 0;
}
Expand Down

0 comments on commit 2b3f27e

Please sign in to comment.