From: Nicolas Saenz Julienne Date: Sun, 8 Mar 2015 19:21:20 +0000 (+0000) Subject: power: generic-adc-battery: Fix power_supply_property returned value X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0595439a0a8740f776a0ae367a4c7f243add24ec;p=linux-beck.git 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 Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/generic-adc-battery.c b/drivers/power/generic-adc-battery.c index d72733e4f93a..0a566ac3eefd 100644 --- a/drivers/power/generic-adc-battery.c +++ b/drivers/power/generic-adc-battery.c @@ -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;