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:
parent
02232be7a2
commit
0595439a0a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue