]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (it87) Replace macro defining tempX_type sensors with direct definitions
authorGuenter Roeck <linux@roeck-us.net>
Wed, 19 Dec 2012 21:17:01 +0000 (22:17 +0100)
committerJean Delvare <khali@endymion.delvare>
Wed, 19 Dec 2012 21:17:01 +0000 (22:17 +0100)
commit22b3ea356ecf25e01db6819eed68c2c35aa353af
tree80ca67d24770743381e423f157f192e8a03bc1fa
parent1193600f31d7729d08b6cda1354f55cb3f27f592
hwmon: (it87) Replace macro defining tempX_type sensors with direct definitions

The macro name show_sensor_offset is confusing since it related to the sensor
type, not an offset - even more so when we introduce offset attributes later on.
Replace it with direct definitions, and replace the show_sensor/set_sensor
function names with show_temp_type/set_temp_type. This also resolves a
checkpatch error.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/it87.c