diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-11-23 14:03:18 -0500 |
---|---|---|
committer | Matthew Garrett <matthew.garrett@nebula.com> | 2014-01-21 08:44:03 -0500 |
commit | 4e062581cc95cc0a12f8e48778a0d3ebb48fa980 (patch) | |
tree | 0392b9e7e3d16025a1f502ce41a68e5d07beadb8 /drivers/platform | |
parent | f0c34c97b3193fee87a3942047c415d476615db1 (diff) |
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: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/compal-laptop.c | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/drivers/platform/x86/compal-laptop.c b/drivers/platform/x86/compal-laptop.c index 7155d79d6b3a..9deb0350b8e6 100644 --- a/drivers/platform/x86/compal-laptop.c +++ b/drivers/platform/x86/compal-laptop.c | |||
@@ -665,23 +665,23 @@ static DEVICE_ATTR(wake_up_key, | |||
665 | static DEVICE_ATTR(wake_up_mouse, | 665 | static DEVICE_ATTR(wake_up_mouse, |
666 | 0644, wake_up_mouse_show, wake_up_mouse_store); | 666 | 0644, wake_up_mouse_show, wake_up_mouse_store); |
667 | 667 | ||
668 | static SENSOR_DEVICE_ATTR(name, S_IRUGO, hwmon_name_show, NULL, 1); | 668 | static DEVICE_ATTR(name, S_IRUGO, hwmon_name_show, NULL); |
669 | static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, fan_show, NULL, 1); | 669 | static DEVICE_ATTR(fan1_input, S_IRUGO, fan_show, NULL); |
670 | static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, temp_cpu, NULL, 1); | 670 | static DEVICE_ATTR(temp1_input, S_IRUGO, temp_cpu, NULL); |
671 | static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, temp_cpu_local, NULL, 1); | 671 | static DEVICE_ATTR(temp2_input, S_IRUGO, temp_cpu_local, NULL); |
672 | static SENSOR_DEVICE_ATTR(temp3_input, S_IRUGO, temp_cpu_DTS, NULL, 1); | 672 | static DEVICE_ATTR(temp3_input, S_IRUGO, temp_cpu_DTS, NULL); |
673 | static SENSOR_DEVICE_ATTR(temp4_input, S_IRUGO, temp_northbridge, NULL, 1); | 673 | static DEVICE_ATTR(temp4_input, S_IRUGO, temp_northbridge, NULL); |
674 | static SENSOR_DEVICE_ATTR(temp5_input, S_IRUGO, temp_vga, NULL, 1); | 674 | static DEVICE_ATTR(temp5_input, S_IRUGO, temp_vga, NULL); |
675 | static SENSOR_DEVICE_ATTR(temp6_input, S_IRUGO, temp_SKIN, NULL, 1); | 675 | static DEVICE_ATTR(temp6_input, S_IRUGO, temp_SKIN, NULL); |
676 | static SENSOR_DEVICE_ATTR(temp1_label, S_IRUGO, label_cpu, NULL, 1); | 676 | static DEVICE_ATTR(temp1_label, S_IRUGO, label_cpu, NULL); |
677 | static SENSOR_DEVICE_ATTR(temp2_label, S_IRUGO, label_cpu_local, NULL, 1); | 677 | static DEVICE_ATTR(temp2_label, S_IRUGO, label_cpu_local, NULL); |
678 | static SENSOR_DEVICE_ATTR(temp3_label, S_IRUGO, label_cpu_DTS, NULL, 1); | 678 | static DEVICE_ATTR(temp3_label, S_IRUGO, label_cpu_DTS, NULL); |
679 | static SENSOR_DEVICE_ATTR(temp4_label, S_IRUGO, label_northbridge, NULL, 1); | 679 | static DEVICE_ATTR(temp4_label, S_IRUGO, label_northbridge, NULL); |
680 | static SENSOR_DEVICE_ATTR(temp5_label, S_IRUGO, label_vga, NULL, 1); | 680 | static DEVICE_ATTR(temp5_label, S_IRUGO, label_vga, NULL); |
681 | static SENSOR_DEVICE_ATTR(temp6_label, S_IRUGO, label_SKIN, NULL, 1); | 681 | static DEVICE_ATTR(temp6_label, S_IRUGO, label_SKIN, NULL); |
682 | static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, pwm_show, pwm_store, 1); | 682 | static DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, pwm_show, pwm_store); |
683 | static SENSOR_DEVICE_ATTR(pwm1_enable, | 683 | static DEVICE_ATTR(pwm1_enable, |
684 | S_IRUGO | S_IWUSR, pwm_enable_show, pwm_enable_store, 0); | 684 | S_IRUGO | S_IWUSR, pwm_enable_show, pwm_enable_store); |
685 | 685 | ||
686 | static struct attribute *compal_attributes[] = { | 686 | static struct attribute *compal_attributes[] = { |
687 | &dev_attr_wake_up_pme.attr, | 687 | &dev_attr_wake_up_pme.attr, |
@@ -692,22 +692,22 @@ static struct attribute *compal_attributes[] = { | |||
692 | &dev_attr_wake_up_mouse.attr, | 692 | &dev_attr_wake_up_mouse.attr, |
693 | /* Maybe put the sensor-stuff in a separate hwmon-driver? That way, | 693 | /* Maybe put the sensor-stuff in a separate hwmon-driver? That way, |
694 | * the hwmon sysfs won't be cluttered with the above files. */ | 694 | * the hwmon sysfs won't be cluttered with the above files. */ |
695 | &sensor_dev_attr_name.dev_attr.attr, | 695 | &dev_attr_name.attr, |
696 | &sensor_dev_attr_pwm1_enable.dev_attr.attr, | 696 | &dev_attr_pwm1_enable.attr, |
697 | &sensor_dev_attr_pwm1.dev_attr.attr, | 697 | &dev_attr_pwm1.attr, |
698 | &sensor_dev_attr_fan1_input.dev_attr.attr, | 698 | &dev_attr_fan1_input.attr, |
699 | &sensor_dev_attr_temp1_input.dev_attr.attr, | 699 | &dev_attr_temp1_input.attr, |
700 | &sensor_dev_attr_temp2_input.dev_attr.attr, | 700 | &dev_attr_temp2_input.attr, |
701 | &sensor_dev_attr_temp3_input.dev_attr.attr, | 701 | &dev_attr_temp3_input.attr, |
702 | &sensor_dev_attr_temp4_input.dev_attr.attr, | 702 | &dev_attr_temp4_input.attr, |
703 | &sensor_dev_attr_temp5_input.dev_attr.attr, | 703 | &dev_attr_temp5_input.attr, |
704 | &sensor_dev_attr_temp6_input.dev_attr.attr, | 704 | &dev_attr_temp6_input.attr, |
705 | &sensor_dev_attr_temp1_label.dev_attr.attr, | 705 | &dev_attr_temp1_label.attr, |
706 | &sensor_dev_attr_temp2_label.dev_attr.attr, | 706 | &dev_attr_temp2_label.attr, |
707 | &sensor_dev_attr_temp3_label.dev_attr.attr, | 707 | &dev_attr_temp3_label.attr, |
708 | &sensor_dev_attr_temp4_label.dev_attr.attr, | 708 | &dev_attr_temp4_label.attr, |
709 | &sensor_dev_attr_temp5_label.dev_attr.attr, | 709 | &dev_attr_temp5_label.attr, |
710 | &sensor_dev_attr_temp6_label.dev_attr.attr, | 710 | &dev_attr_temp6_label.attr, |
711 | NULL | 711 | NULL |
712 | }; | 712 | }; |
713 | 713 | ||