Skip to content

Commit

Permalink
power: generic-adc-battery: Fix power_supply_property returned value
Browse files Browse the repository at this point in the history
The POWER_SUPPLY_PROP_STATUS case in gab_get_property() wasn't providing any
value.

Signed-off-by: Nicolas Saenz Julienne <nicolassaenzj@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
  • Loading branch information
Nicolas Saenz Julienne authored and Sebastian Reichel committed Mar 9, 2015
1 parent 02232be commit 0595439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/generic-adc-battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static int gab_get_property(struct power_supply *psy,

switch (psp) {
case POWER_SUPPLY_PROP_STATUS:
gab_get_status(adc_bat);
val->intval = gab_get_status(adc_bat);
break;
case POWER_SUPPLY_PROP_CHARGE_EMPTY_DESIGN:
val->intval = 0;
Expand Down

0 comments on commit 0595439

Please sign in to comment.