power: generic-adc-battery: Fix power_supply_property returned value

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>
This commit is contained in:
Nicolas Saenz Julienne 2015-03-08 19:21:20 +00:00 committed by Sebastian Reichel
parent 02232be7a2
commit 0595439a0a
1 changed files with 1 additions and 1 deletions

View File

@ -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;