]> git.baikalelectronics.ru Git - kernel.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)
commit0253030a04e9441bae442466590d14ad229b1bb7
tree223c438de12f410a863dc46edc07927435428d03
parentb8f504da96ab652ab39ac3ba6d349f315a01927b
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