hwmon: (nct6775) Fix temperature alarm attributes
authorGuenter Roeck <linux@roeck-us.net>
Sat, 22 Jun 2013 23:15:31 +0000 (16:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2013 21:07:27 +0000 (14:07 -0700)
commite00354825e75a338ced4f4eb16cf08182c116984
tree6d8b793c8033e8af4817a4ef0fe633fbab9d74cc
parent1ef08eb2a9a50d9b4dd119bda4f747e1b922a4fc
hwmon: (nct6775) Fix temperature alarm attributes

commit b1d2bff6a61140454b9d203519cc686a2e9ef32f upstream.

Driver displays wrong alarms for temperature attributes.

Turns out that temperature alarm bits are not fixed, but determined
by temperature source mapping. To fix the problem, walk through
the temperature sources to determine the correct alarm bit associated
with a given attribute.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/nct6775.c