Fix spurious 0 values on batteries seen on laptopts that have an embedded
authormarco <marco@openbsd.org>
Tue, 5 Aug 2008 17:01:06 +0000 (17:01 +0000)
committermarco <marco@openbsd.org>
Tue, 5 Aug 2008 17:01:06 +0000 (17:01 +0000)
commite1dfedf1ea5eb06a2beb4e8ea4dad499aece627b
tree408091884ad886a8e46abf2a3bb4321bf228aa7e
parent895b974b52337800fcce46264a278d92d1d9ebcd
Fix spurious 0 values on batteries seen on laptopts that have an embedded
controller.

Found, diagnosed and patch from Stefan Sperling <stsp@stsp.name>
Minor KNF changes while here.

Tested by many on a variaty of IBM laptops and others with and without
acpiec.

ok deraadt
sys/dev/acpi/acpibat.c