From: Matthew Garrett Date: Mon, 23 Aug 2010 20:25:32 +0000 (+0000) Subject: ACPI: Don't report current_now if battery reports in mWh X-Git-Tag: v2.6.36-rc7~25^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b137b9942a07843c64a934cfdb7d43155e507e13;p=pandora-kernel.git ACPI: Don't report current_now if battery reports in mWh 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 Cc: Arjan van de Ven Acked-by: Rafael J. Wysocki Acked-by: Zhang Rui Signed-off-by: Len Brown --- Reading git-diff-tree failed