]> 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>
Wed, 31 Oct 2012 23:18:29 +0000 (10:18 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 31 Oct 2012 23:43:04 +0000 (10:43 +1100)
commitc66a3a2651222b349a00ed21bb19dee80d22e573
tree49b9b7f74790cd874338375320ec1b7138aa419e
parent31add3128bc5c87f1d47f48de9ef7bd2002aa50c
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