summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/battery.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2007-11-20 07:17:42 +0100
committerLen Brown <len.brown@intel.com>2007-11-20 07:17:42 +0100
commit86533e80e0a20ed1a676f9eeb2dde0fa5ff23276 (patch)
treec645c87f236c42134bf7e06f7cc971685f4b5a5b /drivers/acpi/battery.c
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/li... (diff)
parentACPI: SBS: Fix retval warning (diff)
downloadlinux-86533e80e0a20ed1a676f9eeb2dde0fa5ff23276.tar.xz
linux-86533e80e0a20ed1a676f9eeb2dde0fa5ff23276.zip
Pull battery into release branch
Diffstat (limited to 'drivers/acpi/battery.c')
-rw-r--r--drivers/acpi/battery.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
index 192c244f6190..2e8e790c1180 100644
--- a/drivers/acpi/battery.c
+++ b/drivers/acpi/battery.c
@@ -153,6 +153,8 @@ static int acpi_battery_get_property(struct power_supply *psy,
val->intval = POWER_SUPPLY_STATUS_CHARGING;
else if (battery->state == 0)
val->intval = POWER_SUPPLY_STATUS_FULL;
+ else
+ val->intval = POWER_SUPPLY_STATUS_UNKNOWN;
break;
case POWER_SUPPLY_PROP_PRESENT:
val->intval = acpi_battery_present(battery);