]> git.hungrycats.org Git - linux/commit
hwmon: (nct6775) Fix RPM output for fan7 on NCT6796D
authorGuenter Roeck <linux@roeck-us.net>
Fri, 14 Sep 2018 03:01:12 +0000 (20:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Oct 2018 07:18:16 +0000 (09:18 +0200)
commitd8eeee24ced8ff023706ee0f7c049cd5e32bcdb6
tree6a636aa372734cbd1d7972f6c55d5a7cbb8d0c37
parent510dc356ff2c5865297b72d8208881ecf12e789d
hwmon: (nct6775) Fix RPM output for fan7 on NCT6796D

[ Upstream commit f6de298806d9cbc63a4907bca34a06162b9d7dce ]

fan7 on NCT6796D does not have a fan count register; it only has an RPM
register. Switch to using RPM registers to read the fan speed for all
chips supporting it to solve the problem for good.

Reported-by: Robert Kern <ulteq@web.de>
Cc: Robert Kern <ulteq@web.de>
Fixes: 81820059a428 ("hwmon: (nct6775) Add support for NCT6796D")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/nct6775.c