You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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:
committed by
Sebastian Reichel
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;
|
||||
|
||||
Reference in New Issue
Block a user