]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
linux/thermal.h: rename KELVIN_TO_CELSIUS to DECI_KELVIN_TO_CELSIUS
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Thu, 1 Oct 2015 21:45:31 +0000 (23:45 +0200)
committerZhang Rui <rui.zhang@intel.com>
Sat, 10 Oct 2015 03:32:30 +0000 (11:32 +0800)
commite866a2e3950fe2f708d5cc67d641b1725ef7a708
tree223c438de12f410a863dc46edc07927435428d03
parenta71544cd9373b879bbb40f55ce4d01556a4bc29e
linux/thermal.h: rename KELVIN_TO_CELSIUS to DECI_KELVIN_TO_CELSIUS

The macros KELVIN_TO_CELSIUS and CELSIUS_TO_KELVIN actually convert
between deciKelvins and Celsius, so rename them to reflect that. While
at it, use a statement expression in DECI_KELVIN_TO_CELSIUS to prevent
expanding the argument multiple times and get rid of a few casts.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Acked-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/acpi/thermal.c
drivers/platform/x86/asus-wmi.c
drivers/platform/x86/intel_menlow.c
include/linux/thermal.h