]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
hwmon: (corsair-psu) Fix fan rpm calculation
authorWilken Gottwalt <wilken.gottwalt@posteo.net>
Fri, 13 Nov 2020 12:19:54 +0000 (13:19 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 3 Dec 2020 01:42:23 +0000 (17:42 -0800)
commit72969073dedb678d5ec5abfeb840a0863f79c5a9
tree0d1341564794e6ad69ce4d818a8eea37f80e0c0f
parent66d5b034ea5cc617a402c5d81f56c22aa85a801f
hwmon: (corsair-psu) Fix fan rpm calculation

The correct fan rpm value is also a LINEAR11 value but without a factor.
Verified by using the fan test button on the psu to let the fan spin up
to maximum for some seconds.

Fixes: 933222c98445 ("hwmon: (corsair-psu) fix unintentional sign extension issue")
Signed-off-by: Wilken Gottwalt <wilken.gottwalt@posteo.net>
Link: https://lore.kernel.org/r/20201113121954.GA8488@monster.powergraphx.local
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/corsair-psu.c