Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297957
b: refs/heads/master
c: df58c04
h: refs/heads/master
i:
  297955: 5f32d3a
v: v3
  • Loading branch information
Anton Vorontsov committed Mar 26, 2012
1 parent 6758cb7 commit 50f81af
Show file tree
Hide file tree
Showing 2 changed files with 4 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: bb2a95c2d2450be1ac942adf6815375f620b7015
refs/heads/master: df58c04c9f4182f979973a06ce40b44a5b84aeb5
6 changes: 3 additions & 3 deletions trunk/drivers/power/charger-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ static int charger_get_property(struct power_supply *psy,
struct charger_manager *cm = container_of(psy,
struct charger_manager, charger_psy);
struct charger_desc *desc = cm->desc;
int i, ret = 0, uV;
int ret = 0;
int uV;

switch (psp) {
case POWER_SUPPLY_PROP_STATUS:
Expand All @@ -425,8 +426,7 @@ static int charger_get_property(struct power_supply *psy,
val->intval = 0;
break;
case POWER_SUPPLY_PROP_VOLTAGE_NOW:
ret = get_batt_uV(cm, &i);
val->intval = i;
ret = get_batt_uV(cm, &val->intval);
break;
case POWER_SUPPLY_PROP_CURRENT_NOW:
ret = cm->fuel_gauge->get_property(cm->fuel_gauge,
Expand Down

0 comments on commit 50f81af

Please sign in to comment.