diff options
author | Jean Delvare <khali@linux-fr.org> | 2006-01-18 17:13:09 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-23 17:21:51 -0500 |
commit | 93766d2de6a3f7eead3fda57fd4638b90d6691fa (patch) | |
tree | e491425b19f46afd75179c3a7ba8e0383a87cc39 /drivers/hwmon | |
parent | 1f8dae31fe8d7b1dbeaa2110e063d876be91ed60 (diff) |
[PATCH] hwmon: w83792d drop useless macros
Drop 3 useless macros in the w83792d hardware monitoring driver.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/w83792d.c | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/drivers/hwmon/w83792d.c b/drivers/hwmon/w83792d.c index c5b57c7a4a75..2e86e188b27a 100644 --- a/drivers/hwmon/w83792d.c +++ b/drivers/hwmon/w83792d.c | |||
@@ -618,10 +618,6 @@ show_alarms_reg(struct device *dev, struct device_attribute *attr, char *buf) | |||
618 | 618 | ||
619 | static | 619 | static |
620 | DEVICE_ATTR(alarms, S_IRUGO, show_alarms_reg, NULL); | 620 | DEVICE_ATTR(alarms, S_IRUGO, show_alarms_reg, NULL); |
621 | #define device_create_file_alarms() \ | ||
622 | device_create_file(dev, &dev_attr_alarms); | ||
623 | |||
624 | |||
625 | 621 | ||
626 | static ssize_t | 622 | static ssize_t |
627 | show_pwm(struct device *dev, struct device_attribute *attr, | 623 | show_pwm(struct device *dev, struct device_attribute *attr, |
@@ -775,12 +771,6 @@ show_regs_chassis(struct device *dev, struct device_attribute *attr, | |||
775 | 771 | ||
776 | static DEVICE_ATTR(chassis, S_IRUGO, show_regs_chassis, NULL); | 772 | static DEVICE_ATTR(chassis, S_IRUGO, show_regs_chassis, NULL); |
777 | 773 | ||
778 | #define device_create_file_chassis() \ | ||
779 | do { \ | ||
780 | device_create_file(dev, &dev_attr_chassis); \ | ||
781 | } while (0) | ||
782 | |||
783 | |||
784 | static ssize_t | 774 | static ssize_t |
785 | show_chassis_clear(struct device *dev, struct device_attribute *attr, char *buf) | 775 | show_chassis_clear(struct device *dev, struct device_attribute *attr, char *buf) |
786 | { | 776 | { |
@@ -811,13 +801,6 @@ store_chassis_clear(struct device *dev, struct device_attribute *attr, | |||
811 | static DEVICE_ATTR(chassis_clear, S_IRUGO | S_IWUSR, | 801 | static DEVICE_ATTR(chassis_clear, S_IRUGO | S_IWUSR, |
812 | show_chassis_clear, store_chassis_clear); | 802 | show_chassis_clear, store_chassis_clear); |
813 | 803 | ||
814 | #define device_create_file_chassis_clear() \ | ||
815 | do { \ | ||
816 | device_create_file(dev, &dev_attr_chassis_clear); \ | ||
817 | } while (0) | ||
818 | |||
819 | |||
820 | |||
821 | /* For Smart Fan I / Thermal Cruise */ | 804 | /* For Smart Fan I / Thermal Cruise */ |
822 | static ssize_t | 805 | static ssize_t |
823 | show_thermal_cruise(struct device *dev, struct device_attribute *attr, | 806 | show_thermal_cruise(struct device *dev, struct device_attribute *attr, |
@@ -1294,16 +1277,15 @@ w83792d_detect(struct i2c_adapter *adapter, int address, int kind) | |||
1294 | device_create_file(dev, &sda_tolerance[i].dev_attr); | 1277 | device_create_file(dev, &sda_tolerance[i].dev_attr); |
1295 | } | 1278 | } |
1296 | 1279 | ||
1297 | device_create_file_alarms(); | ||
1298 | |||
1299 | for (i = 0; i < ARRAY_SIZE(sda_pwm); i++) { | 1280 | for (i = 0; i < ARRAY_SIZE(sda_pwm); i++) { |
1300 | device_create_file(dev, &sda_pwm[i].dev_attr); | 1281 | device_create_file(dev, &sda_pwm[i].dev_attr); |
1301 | device_create_file(dev, &sda_pwm_enable[i].dev_attr); | 1282 | device_create_file(dev, &sda_pwm_enable[i].dev_attr); |
1302 | device_create_file(dev, &sda_pwm_mode[i].dev_attr); | 1283 | device_create_file(dev, &sda_pwm_mode[i].dev_attr); |
1303 | } | 1284 | } |
1304 | 1285 | ||
1305 | device_create_file_chassis(); | 1286 | device_create_file(dev, &dev_attr_alarms); |
1306 | device_create_file_chassis_clear(); | 1287 | device_create_file(dev, &dev_attr_chassis); |
1288 | device_create_file(dev, &dev_attr_chassis_clear); | ||
1307 | 1289 | ||
1308 | for (i = 0; i < ARRAY_SIZE(sda_sf2_point); i++) | 1290 | for (i = 0; i < ARRAY_SIZE(sda_sf2_point); i++) |
1309 | device_create_file(dev, &sda_sf2_point[i].dev_attr); | 1291 | device_create_file(dev, &sda_sf2_point[i].dev_attr); |