]> 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)
commit9e229f77781862e9ec27291dd2db92e5044aac3e
tree80ca67d24770743381e423f157f192e8a03bc1fa
parent0db50c3c3d7dbe1082bcae82c9a40c9014d4d9dd
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