Commit 0ba70590 authored by Tony O'Brien's avatar Tony O'Brien Committed by sanglipeng
Browse files

hwmon: (adt7475) Fix masking of hysteresis registers

stable inclusion
from stable-v5.10.176
commit 4a8c3ad12c9dd6456ae3fade707166935bf29ba5
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8CHVQ

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



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

[ Upstream commit 48e81868 ]

The wrong bits are masked in the hysteresis register; indices 0 and 2
should zero bits [7:4] and preserve bits [3:0], and index 1 should zero
bits [3:0] and preserve bits [7:4].

Fixes: 1c301fc5 ("hwmon: Add a driver for the ADT7475 hardware monitoring chip")
Signed-off-by: default avatarTony O'Brien <tony.obrien@alliedtelesis.co.nz>
Link: https://lore.kernel.org/r/20230222005228.158661-3-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 86b77d1d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment