]> 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>
Tue, 13 Nov 2012 23:31:28 +0000 (10:31 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Nov 2012 23:31:28 +0000 (10:31 +1100)
commitd2e79bfd1700a6874bf98a1f7309e422f73e0fdc
tree0db6a1abb9ef3bbb56c0439e7854f315af2251b1
parentcd1b228bd2859af1a8cd8d8b5faedeeaa3d47007
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