Skip to content

Commit 614198b

Browse files
perdalenGuenter Roeck
authored andcommitted
hwmon: (max6642) Rename temp_fault sysfs attribute to temp2_fault
The temp_fault sysfs attribute is wrong, it should be temp2_fault instead. Reported-by: Guenter Roeck <guenter.roeck@ericsson.com> Signed-off-by: Per Dalen <per.dalen@appeartv.com> Acked-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
1 parent 55922c9 commit 614198b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/hwmon/max6642.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ static SENSOR_DEVICE_ATTR_2(temp1_max, S_IWUSR | S_IRUGO, show_temp_max,
246246
set_temp_max, 0, MAX6642_REG_W_LOCAL_HIGH);
247247
static SENSOR_DEVICE_ATTR_2(temp2_max, S_IWUSR | S_IRUGO, show_temp_max,
248248
set_temp_max, 1, MAX6642_REG_W_REMOTE_HIGH);
249-
static SENSOR_DEVICE_ATTR(temp_fault, S_IRUGO, show_alarm, NULL, 2);
249+
static SENSOR_DEVICE_ATTR(temp2_fault, S_IRUGO, show_alarm, NULL, 2);
250250
static SENSOR_DEVICE_ATTR(temp1_max_alarm, S_IRUGO, show_alarm, NULL, 6);
251251
static SENSOR_DEVICE_ATTR(temp2_max_alarm, S_IRUGO, show_alarm, NULL, 4);
252252

@@ -256,7 +256,7 @@ static struct attribute *max6642_attributes[] = {
256256
&sensor_dev_attr_temp1_max.dev_attr.attr,
257257
&sensor_dev_attr_temp2_max.dev_attr.attr,
258258

259-
&sensor_dev_attr_temp_fault.dev_attr.attr,
259+
&sensor_dev_attr_temp2_fault.dev_attr.attr,
260260
&sensor_dev_attr_temp1_max_alarm.dev_attr.attr,
261261
&sensor_dev_attr_temp2_max_alarm.dev_attr.attr,
262262
NULL

0 commit comments

Comments
 (0)