hwmon: (w83627ehf) Fix number of fans for NCT6776F
authorGuenter Roeck <linux@roeck-us.net>
Fri, 27 Jan 2012 13:43:59 +0000 (05:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Feb 2012 19:16:58 +0000 (11:16 -0800)
commit38c8c07ac7383692d0a4f932f6ac611437ed24ed
treec77310e76d70d1f44e0f2f99b55d192f1773feb3
parent3d1b7976d3697421e04c86c7a782833c83244694
hwmon: (w83627ehf) Fix number of fans for NCT6776F

commit 585c0fd8216e0c9f98e2434092af7ec0f999522d upstream.

NCT6776F can select fan input pins for fans 3 to 5 with a secondary set of
chip register bits. Check that second set of bits in addition to the first set
to detect if fans 3..5 are monitored.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/w83627ehf.c