]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hwmon: (nct6775) Fix fan speed set failure in automatic mode
authorXing Tong Wu <xingtong.wu@siemens.com>
Tue, 21 Nov 2023 08:16:04 +0000 (16:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Feb 2024 20:14:28 +0000 (20:14 +0000)
commit6f86bbf92cc5ebb304b1f8be43279354c4285daf
tree1619ad6f7e9ecf163b6504848bf6149182e0c1de
parent8a315206425b51f0afc130010ff308f1480fda0e
hwmon: (nct6775) Fix fan speed set failure in automatic mode

[ Upstream commit 8b3800256abad20e91c2698607f9b28591407b19 ]

Setting the fan speed is only valid in manual mode; it is not possible
to set the fan's speed in automatic mode.
Return error when attempting to set the fan speed in automatic mode.

Signed-off-by: Xing Tong Wu <xingtong.wu@siemens.com>
Link: https://lore.kernel.org/r/20231121081604.2499-3-xingtong_wu@163.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/nct6775-core.c