Commit 0595439a authored by Nicolas Saenz Julienne's avatar Nicolas Saenz Julienne Committed by Sebastian Reichel

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: default avatarNicolas Saenz Julienne <nicolassaenzj@gmail.com>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 02232be7
...@@ -159,7 +159,7 @@ static int gab_get_property(struct power_supply *psy, ...@@ -159,7 +159,7 @@ static int gab_get_property(struct power_supply *psy,
switch (psp) { switch (psp) {
case POWER_SUPPLY_PROP_STATUS: case POWER_SUPPLY_PROP_STATUS:
gab_get_status(adc_bat); val->intval = gab_get_status(adc_bat);
break; break;
case POWER_SUPPLY_PROP_CHARGE_EMPTY_DESIGN: case POWER_SUPPLY_PROP_CHARGE_EMPTY_DESIGN:
val->intval = 0; val->intval = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment