Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23242
b: refs/heads/master
c: 93766d2
h: refs/heads/master
v: v3
  • Loading branch information
Jean Delvare authored and Greg Kroah-Hartman committed Mar 23, 2006
1 parent 7f296b3 commit ebc4602
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f8dae31fe8d7b1dbeaa2110e063d876be91ed60
refs/heads/master: 93766d2de6a3f7eead3fda57fd4638b90d6691fa
24 changes: 3 additions & 21 deletions trunk/drivers/hwmon/w83792d.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,10 +618,6 @@ show_alarms_reg(struct device *dev, struct device_attribute *attr, char *buf)

static
DEVICE_ATTR(alarms, S_IRUGO, show_alarms_reg, NULL);
#define device_create_file_alarms() \
device_create_file(dev, &dev_attr_alarms);



static ssize_t
show_pwm(struct device *dev, struct device_attribute *attr,
Expand Down Expand Up @@ -775,12 +771,6 @@ show_regs_chassis(struct device *dev, struct device_attribute *attr,

static DEVICE_ATTR(chassis, S_IRUGO, show_regs_chassis, NULL);

#define device_create_file_chassis() \
do { \
device_create_file(dev, &dev_attr_chassis); \
} while (0)


static ssize_t
show_chassis_clear(struct device *dev, struct device_attribute *attr, char *buf)
{
Expand Down Expand Up @@ -811,13 +801,6 @@ store_chassis_clear(struct device *dev, struct device_attribute *attr,
static DEVICE_ATTR(chassis_clear, S_IRUGO | S_IWUSR,
show_chassis_clear, store_chassis_clear);

#define device_create_file_chassis_clear() \
do { \
device_create_file(dev, &dev_attr_chassis_clear); \
} while (0)



/* For Smart Fan I / Thermal Cruise */
static ssize_t
show_thermal_cruise(struct device *dev, struct device_attribute *attr,
Expand Down Expand Up @@ -1294,16 +1277,15 @@ w83792d_detect(struct i2c_adapter *adapter, int address, int kind)
device_create_file(dev, &sda_tolerance[i].dev_attr);
}

device_create_file_alarms();

for (i = 0; i < ARRAY_SIZE(sda_pwm); i++) {
device_create_file(dev, &sda_pwm[i].dev_attr);
device_create_file(dev, &sda_pwm_enable[i].dev_attr);
device_create_file(dev, &sda_pwm_mode[i].dev_attr);
}

device_create_file_chassis();
device_create_file_chassis_clear();
device_create_file(dev, &dev_attr_alarms);
device_create_file(dev, &dev_attr_chassis);
device_create_file(dev, &dev_attr_chassis_clear);

for (i = 0; i < ARRAY_SIZE(sda_sf2_point); i++)
device_create_file(dev, &sda_sf2_point[i].dev_attr);
Expand Down

0 comments on commit ebc4602

Please sign in to comment.