summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/utils.c
diff options
context:
space:
mode:
authorAlexey Starikovskiy <aystarik@gmail.com>2008-11-21 22:41:01 +0800
committerLen Brown <len.brown@intel.com>2008-11-26 17:23:10 -0500
commit558073dd56707864f09d563b64e7c37c021e89d2 (patch)
tree0dcf13ad7676da7ac229b58a758546a70849cbe0 /drivers/acpi/utils.c
parent7b4d469228a92a00e412675817cedd60133de38a (diff)
downloadkernel-crypto-558073dd56707864f09d563b64e7c37c021e89d2.tar.gz
kernel-crypto-558073dd56707864f09d563b64e7c37c021e89d2.tar.xz
kernel-crypto-558073dd56707864f09d563b64e7c37c021e89d2.zip
ACPI: battery: Convert discharge energy rate to current properly
ACPI battery interface reports its state either in mW or in mA, and discharge rate in your case is reported in mW. power_supply interface does not have such a parameter, so current_now parameter is used for all cases. But in case of mW, reported discharge should be converted into mA. Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de> Tested-by: Ferenc Wagner <wferi@niif.hu> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/utils.c')
0 files changed, 0 insertions, 0 deletions