Commit 4e062581 authored by Guenter Roeck's avatar Guenter Roeck Committed by Matthew Garrett

compal-laptop: Replace SENSOR_DEVICE_ATTR with DEVICE_ATTR

The extra argument to SENSOR_DEVICE_ATTR is not used. It is therefore not
necessary to use SENSOR_DEVICE_ATTR in the first place. Replace it with
DEVICE_ATTR.
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarMatthew Garrett <matthew.garrett@nebula.com>
parent f0c34c97
...@@ -665,23 +665,23 @@ static DEVICE_ATTR(wake_up_key, ...@@ -665,23 +665,23 @@ static DEVICE_ATTR(wake_up_key,
static DEVICE_ATTR(wake_up_mouse, static DEVICE_ATTR(wake_up_mouse,
0644, wake_up_mouse_show, wake_up_mouse_store); 0644, wake_up_mouse_show, wake_up_mouse_store);
static SENSOR_DEVICE_ATTR(name, S_IRUGO, hwmon_name_show, NULL, 1); static DEVICE_ATTR(name, S_IRUGO, hwmon_name_show, NULL);
static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, fan_show, NULL, 1); static DEVICE_ATTR(fan1_input, S_IRUGO, fan_show, NULL);
static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, temp_cpu, NULL, 1); static DEVICE_ATTR(temp1_input, S_IRUGO, temp_cpu, NULL);
static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, temp_cpu_local, NULL, 1); static DEVICE_ATTR(temp2_input, S_IRUGO, temp_cpu_local, NULL);
static SENSOR_DEVICE_ATTR(temp3_input, S_IRUGO, temp_cpu_DTS, NULL, 1); static DEVICE_ATTR(temp3_input, S_IRUGO, temp_cpu_DTS, NULL);
static SENSOR_DEVICE_ATTR(temp4_input, S_IRUGO, temp_northbridge, NULL, 1); static DEVICE_ATTR(temp4_input, S_IRUGO, temp_northbridge, NULL);
static SENSOR_DEVICE_ATTR(temp5_input, S_IRUGO, temp_vga, NULL, 1); static DEVICE_ATTR(temp5_input, S_IRUGO, temp_vga, NULL);
static SENSOR_DEVICE_ATTR(temp6_input, S_IRUGO, temp_SKIN, NULL, 1); static DEVICE_ATTR(temp6_input, S_IRUGO, temp_SKIN, NULL);
static SENSOR_DEVICE_ATTR(temp1_label, S_IRUGO, label_cpu, NULL, 1); static DEVICE_ATTR(temp1_label, S_IRUGO, label_cpu, NULL);
static SENSOR_DEVICE_ATTR(temp2_label, S_IRUGO, label_cpu_local, NULL, 1); static DEVICE_ATTR(temp2_label, S_IRUGO, label_cpu_local, NULL);
static SENSOR_DEVICE_ATTR(temp3_label, S_IRUGO, label_cpu_DTS, NULL, 1); static DEVICE_ATTR(temp3_label, S_IRUGO, label_cpu_DTS, NULL);
static SENSOR_DEVICE_ATTR(temp4_label, S_IRUGO, label_northbridge, NULL, 1); static DEVICE_ATTR(temp4_label, S_IRUGO, label_northbridge, NULL);
static SENSOR_DEVICE_ATTR(temp5_label, S_IRUGO, label_vga, NULL, 1); static DEVICE_ATTR(temp5_label, S_IRUGO, label_vga, NULL);
static SENSOR_DEVICE_ATTR(temp6_label, S_IRUGO, label_SKIN, NULL, 1); static DEVICE_ATTR(temp6_label, S_IRUGO, label_SKIN, NULL);
static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, pwm_show, pwm_store, 1); static DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, pwm_show, pwm_store);
static SENSOR_DEVICE_ATTR(pwm1_enable, static DEVICE_ATTR(pwm1_enable,
S_IRUGO | S_IWUSR, pwm_enable_show, pwm_enable_store, 0); S_IRUGO | S_IWUSR, pwm_enable_show, pwm_enable_store);
static struct attribute *compal_attributes[] = { static struct attribute *compal_attributes[] = {
&dev_attr_wake_up_pme.attr, &dev_attr_wake_up_pme.attr,
...@@ -692,22 +692,22 @@ static struct attribute *compal_attributes[] = { ...@@ -692,22 +692,22 @@ static struct attribute *compal_attributes[] = {
&dev_attr_wake_up_mouse.attr, &dev_attr_wake_up_mouse.attr,
/* Maybe put the sensor-stuff in a separate hwmon-driver? That way, /* Maybe put the sensor-stuff in a separate hwmon-driver? That way,
* the hwmon sysfs won't be cluttered with the above files. */ * the hwmon sysfs won't be cluttered with the above files. */
&sensor_dev_attr_name.dev_attr.attr, &dev_attr_name.attr,
&sensor_dev_attr_pwm1_enable.dev_attr.attr, &dev_attr_pwm1_enable.attr,
&sensor_dev_attr_pwm1.dev_attr.attr, &dev_attr_pwm1.attr,
&sensor_dev_attr_fan1_input.dev_attr.attr, &dev_attr_fan1_input.attr,
&sensor_dev_attr_temp1_input.dev_attr.attr, &dev_attr_temp1_input.attr,
&sensor_dev_attr_temp2_input.dev_attr.attr, &dev_attr_temp2_input.attr,
&sensor_dev_attr_temp3_input.dev_attr.attr, &dev_attr_temp3_input.attr,
&sensor_dev_attr_temp4_input.dev_attr.attr, &dev_attr_temp4_input.attr,
&sensor_dev_attr_temp5_input.dev_attr.attr, &dev_attr_temp5_input.attr,
&sensor_dev_attr_temp6_input.dev_attr.attr, &dev_attr_temp6_input.attr,
&sensor_dev_attr_temp1_label.dev_attr.attr, &dev_attr_temp1_label.attr,
&sensor_dev_attr_temp2_label.dev_attr.attr, &dev_attr_temp2_label.attr,
&sensor_dev_attr_temp3_label.dev_attr.attr, &dev_attr_temp3_label.attr,
&sensor_dev_attr_temp4_label.dev_attr.attr, &dev_attr_temp4_label.attr,
&sensor_dev_attr_temp5_label.dev_attr.attr, &dev_attr_temp5_label.attr,
&sensor_dev_attr_temp6_label.dev_attr.attr, &dev_attr_temp6_label.attr,
NULL NULL
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment