]> 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>
Mon, 5 Nov 2012 22:54:45 +0000 (09:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 5 Nov 2012 22:54:45 +0000 (09:54 +1100)
commit192bba7b9e45b785391b71fd53f6e4fa94fa400c
treea66acdee557557ed3de0cc75194e72451336596d
parent176698470563e698fab0d1ccbf94730d080533bc
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