]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (it87) Replace macro defining tempX_type sensors with direct definitions
authorGuenter Roeck <linux@roeck-us.net>
Sun, 11 Nov 2012 22:51:33 +0000 (09:51 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sun, 11 Nov 2012 22:51:33 +0000 (09:51 +1100)
commitce2f883221d0b3cf38000f1b638df4e5b04ae159
tree5fa31f2154ddeb33a848a5948c157acac19a33cd
parent2265939a8af3896f63b9d3d6dc1b38d79333af77
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