Commit 290931b2 authored by Tony O'Brien's avatar Tony O'Brien Committed by sanglipeng
Browse files

hwmon: (adt7475) Display smoothing attributes in correct order

stable inclusion
from stable-v5.10.176
commit aff84fadba53befed494a28c84544c87fce908c4
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I87BGI

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=aff84fadba53befed494a28c84544c87fce908c4



--------------------------------

[ Upstream commit 5f8d1e3b ]

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: 8f05bcc3 ("hwmon: (adt7475) temperature smoothing")
Signed-off-by: default avatarTony O'Brien <tony.obrien@alliedtelesis.co.nz>
Link: https://lore.kernel.org/r/20230222005228.158661-2-tony.obrien@alliedtelesis.co.nz


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 4c66ebe0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment