]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm90) Convert some macros to static functions
authorNate Case <ncase@xes-inc.com>
Fri, 17 Oct 2008 15:51:10 +0000 (17:51 +0200)
committerJean Delvare <khali@mahadeva.delvare>
Fri, 17 Oct 2008 15:51:10 +0000 (17:51 +0200)
commit97ed9cee3627c0519f6441e4bb48f80d70d89b77
tree67cad283dc33aad4168a6ef7240c00c91c308edc
parent8effe258875c01532d7e2e6fbc318154ba1b61f7
hwmon: (lm90) Convert some macros to static functions

Use static functions instead of the TEMPx_FROM_REG* and TEMPx_TO_REG*
macros.  This will ensure type safety and eliminate any side effects
from arguments passed in since the macros referenced 'val' multiple
times.  This change should not affect functionality.

Signed-off-by: Nate Case <ncase@xes-inc.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Martyn Welch <martyn.welch@gefanuc.com>
drivers/hwmon/lm90.c