hwmon: (nct6775) Fix temperature alarm attributes
authorGuenter Roeck <linux@roeck-us.net>
Sat, 22 Jun 2013 23:15:31 +0000 (16:15 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 27 Jun 2013 17:31:43 +0000 (10:31 -0700)
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.

Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6775.c

Simple merge