ACPI Battery: Added capacity
authorsrinivas pandruvada <srinivas.pandruvada@intel.com>
Fri, 6 Apr 2012 00:38:54 +0000 (17:38 -0700)
committerLen Brown <len.brown@intel.com>
Fri, 1 Jun 2012 22:57:11 +0000 (18:57 -0400)
commita58e1150225cc9e554b76da5519b2bb5bb6e46ff
tree90cbedc661a3bf171f82d4401f226abfa42b89fb
parentc5971456964290da7e98222892797b71ef793e62
ACPI Battery: Added capacity

Added Capacity field, which is a pre-defined power_supply
property. Calculating capacity using current charge/energy and
full charge/energy.
Some user mode implementations are relying on capacity field to
show battery strength and power down decision.

Signed-off-by: srinivas pandruvada <srinivas.pandruvada@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/battery.c