diff options
Diffstat (limited to 'drivers/hwmon/k10temp.c')
-rw-r--r-- | drivers/hwmon/k10temp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index 9cdfde6515ad..ce3b91f22e30 100644 --- a/drivers/hwmon/k10temp.c +++ b/drivers/hwmon/k10temp.c | |||
@@ -72,8 +72,8 @@ static void amd_nb_smu_index_read(struct pci_dev *pdev, unsigned int devfn, | |||
72 | mutex_unlock(&nb_smu_ind_mutex); | 72 | mutex_unlock(&nb_smu_ind_mutex); |
73 | } | 73 | } |
74 | 74 | ||
75 | static ssize_t show_temp(struct device *dev, | 75 | static ssize_t temp1_input_show(struct device *dev, |
76 | struct device_attribute *attr, char *buf) | 76 | struct device_attribute *attr, char *buf) |
77 | { | 77 | { |
78 | u32 regval; | 78 | u32 regval; |
79 | struct pci_dev *pdev = dev_get_drvdata(dev); | 79 | struct pci_dev *pdev = dev_get_drvdata(dev); |
@@ -88,8 +88,8 @@ static ssize_t show_temp(struct device *dev, | |||
88 | return sprintf(buf, "%u\n", (regval >> 21) * 125); | 88 | return sprintf(buf, "%u\n", (regval >> 21) * 125); |
89 | } | 89 | } |
90 | 90 | ||
91 | static ssize_t show_temp_max(struct device *dev, | 91 | static ssize_t temp1_max_show(struct device *dev, |
92 | struct device_attribute *attr, char *buf) | 92 | struct device_attribute *attr, char *buf) |
93 | { | 93 | { |
94 | return sprintf(buf, "%d\n", 70 * 1000); | 94 | return sprintf(buf, "%d\n", 70 * 1000); |
95 | } | 95 | } |
@@ -110,8 +110,8 @@ static ssize_t show_temp_crit(struct device *dev, | |||
110 | return sprintf(buf, "%d\n", value); | 110 | return sprintf(buf, "%d\n", value); |
111 | } | 111 | } |
112 | 112 | ||
113 | static DEVICE_ATTR(temp1_input, S_IRUGO, show_temp, NULL); | 113 | static DEVICE_ATTR_RO(temp1_input); |
114 | static DEVICE_ATTR(temp1_max, S_IRUGO, show_temp_max, NULL); | 114 | static DEVICE_ATTR_RO(temp1_max); |
115 | static SENSOR_DEVICE_ATTR(temp1_crit, S_IRUGO, show_temp_crit, NULL, 0); | 115 | static SENSOR_DEVICE_ATTR(temp1_crit, S_IRUGO, show_temp_crit, NULL, 0); |
116 | static SENSOR_DEVICE_ATTR(temp1_crit_hyst, S_IRUGO, show_temp_crit, NULL, 1); | 116 | static SENSOR_DEVICE_ATTR(temp1_crit_hyst, S_IRUGO, show_temp_crit, NULL, 1); |
117 | 117 | ||