Message ID | 1425842480-8746-1-git-send-email-nicolassaenzj@gmail.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
Hi, On Sun, Mar 08, 2015 at 07:21:20PM +0000, nicolassaenzj@gmail.com wrote: > From: Nicolas Saenz Julienne <nicolassaenzj@gmail.com> > > The POWER_SUPPLY_PROP_STATUS case in gab_get_property() wasn't providing any > value. Thanks, queued: http://git.infradead.org/battery-2.6.git/commit/0595439a0a8740f776a0ae367a4c7f243add24ec -- Sebastian
diff --git a/drivers/power/generic-adc-battery.c b/drivers/power/generic-adc-battery.c index d72733e..0a566ac 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;