ACPI: Don't report current_now if battery reports in mWh
authorMatthew Garrett <mjg@redhat.com>
Mon, 23 Aug 2010 20:25:32 +0000 (20:25 +0000)
committerLen Brown <len.brown@intel.com>
Tue, 31 Aug 2010 04:00:47 +0000 (00:00 -0400)
ACPI batteries can report in units of either current or energy. Right
now we expose the current_now file even if the battery is reporting
energy units, resulting in a file that should contain mA instead
containing mW. Don't expose this value unless the battery is reporting
current.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Cc: Arjan van de Ven <arjan@linux.intel.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>

No differences found