Skip to content

Commit 5f8d1e3

Browse files
Tony O'Briengroeck
authored andcommitted
hwmon: (adt7475) Display smoothing attributes in correct order
Throughout the ADT7475 driver, attributes relating to the temperature sensors are displayed in the order Remote 1, Local, Remote 2. Make temp_st_show() conform to this expectation so that values set by temp_st_store() can be displayed using the correct attribute. Fixes: 8f05bcc ("hwmon: (adt7475) temperature smoothing") Signed-off-by: Tony O'Brien <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent fe15c26 commit 5f8d1e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/hwmon/adt7475.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,11 +556,11 @@ static ssize_t temp_st_show(struct device *dev, struct device_attribute *attr,
556556
val = data->enh_acoustics[0] & 0xf;
557557
break;
558558
case 1:
559-
val = (data->enh_acoustics[1] >> 4) & 0xf;
559+
val = data->enh_acoustics[1] & 0xf;
560560
break;
561561
case 2:
562562
default:
563-
val = data->enh_acoustics[1] & 0xf;
563+
val = (data->enh_acoustics[1] >> 4) & 0xf;
564564
break;
565565
}
566566

0 commit comments

Comments
 (0)