diff options
Diffstat (limited to 'drivers/acpi/battery.c')
-rw-r--r-- | drivers/acpi/battery.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index c2ce0ad21693..cbb27b4ddea4 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c | |||
@@ -152,6 +152,8 @@ static int acpi_battery_get_property(struct power_supply *psy, | |||
152 | val->intval = POWER_SUPPLY_STATUS_CHARGING; | 152 | val->intval = POWER_SUPPLY_STATUS_CHARGING; |
153 | else if (battery->state == 0) | 153 | else if (battery->state == 0) |
154 | val->intval = POWER_SUPPLY_STATUS_FULL; | 154 | val->intval = POWER_SUPPLY_STATUS_FULL; |
155 | else | ||
156 | val->intval = POWER_SUPPLY_STATUS_UNKNOWN; | ||
155 | break; | 157 | break; |
156 | case POWER_SUPPLY_PROP_PRESENT: | 158 | case POWER_SUPPLY_PROP_PRESENT: |
157 | val->intval = acpi_battery_present(battery); | 159 | val->intval = acpi_battery_present(battery); |