diff options
Diffstat (limited to 'drivers/hwmon/coretemp.c')
-rw-r--r-- | drivers/hwmon/coretemp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c index 6420c3be07b8..ac1c81f1d593 100644 --- a/drivers/hwmon/coretemp.c +++ b/drivers/hwmon/coretemp.c | |||
@@ -347,11 +347,11 @@ static int create_core_attrs(struct temp_data *tdata, struct device *dev, | |||
347 | int attr_no) | 347 | int attr_no) |
348 | { | 348 | { |
349 | int err, i; | 349 | int err, i; |
350 | static ssize_t (*rd_ptr[TOTAL_ATTRS]) (struct device *dev, | 350 | static ssize_t (*const rd_ptr[TOTAL_ATTRS]) (struct device *dev, |
351 | struct device_attribute *devattr, char *buf) = { | 351 | struct device_attribute *devattr, char *buf) = { |
352 | show_label, show_crit_alarm, show_temp, show_tjmax, | 352 | show_label, show_crit_alarm, show_temp, show_tjmax, |
353 | show_ttarget }; | 353 | show_ttarget }; |
354 | static const char *names[TOTAL_ATTRS] = { | 354 | static const char *const names[TOTAL_ATTRS] = { |
355 | "temp%d_label", "temp%d_crit_alarm", | 355 | "temp%d_label", "temp%d_crit_alarm", |
356 | "temp%d_input", "temp%d_crit", | 356 | "temp%d_input", "temp%d_crit", |
357 | "temp%d_max" }; | 357 | "temp%d_max" }; |