aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/thermal/thermal_sysfs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/thermal/thermal_sysfs.c b/drivers/thermal/thermal_sysfs.c
index ba1df6953da6..721726565fef 100644
--- a/drivers/thermal/thermal_sysfs.c
+++ b/drivers/thermal/thermal_sysfs.c
@@ -381,7 +381,7 @@ sustainable_power_store(struct device *dev, struct device_attribute *devattr,
381 \ 381 \
382 return count; \ 382 return count; \
383 } \ 383 } \
384 static DEVICE_ATTR(name, S_IWUSR | S_IRUGO, name##_show, name##_store) 384 static DEVICE_ATTR_RW(name)
385 385
386create_s32_tzp_attr(k_po); 386create_s32_tzp_attr(k_po);
387create_s32_tzp_attr(k_pu); 387create_s32_tzp_attr(k_pu);
@@ -724,8 +724,8 @@ cur_state_store(struct device *dev, struct device_attribute *attr,
724 724
725static struct device_attribute 725static struct device_attribute
726dev_attr_cdev_type = __ATTR(type, 0444, cdev_type_show, NULL); 726dev_attr_cdev_type = __ATTR(type, 0444, cdev_type_show, NULL);
727static DEVICE_ATTR(max_state, 0444, max_state_show, NULL); 727static DEVICE_ATTR_RO(max_state);
728static DEVICE_ATTR(cur_state, 0644, cur_state_show, cur_state_store); 728static DEVICE_ATTR_RW(cur_state);
729 729
730static struct attribute *cooling_device_attrs[] = { 730static struct attribute *cooling_device_attrs[] = {
731 &dev_attr_cdev_type.attr, 731 &dev_attr_cdev_type.attr,
@@ -886,10 +886,10 @@ static ssize_t trans_table_show(struct device *dev,
886 return len; 886 return len;
887} 887}
888 888
889static DEVICE_ATTR(total_trans, 0444, total_trans_show, NULL); 889static DEVICE_ATTR_RO(total_trans);
890static DEVICE_ATTR(time_in_state_ms, 0444, time_in_state_ms_show, NULL); 890static DEVICE_ATTR_RO(time_in_state_ms);
891static DEVICE_ATTR(reset, 0200, NULL, reset_store); 891static DEVICE_ATTR_WO(reset);
892static DEVICE_ATTR(trans_table, 0444, trans_table_show, NULL); 892static DEVICE_ATTR_RO(trans_table);
893 893
894static struct attribute *cooling_device_stats_attrs[] = { 894static struct attribute *cooling_device_stats_attrs[] = {
895 &dev_attr_total_trans.attr, 895 &dev_attr_total_trans.attr,