hwmon: (nct7904) Add array fan_alarm and vsen_alarm to store the alarms in nct7904_da...
authoramy.shih <amy.shih@advantech.com.tw>
Thu, 19 Sep 2019 03:02:05 +0000 (11:02 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 2 Oct 2019 13:42:48 +0000 (06:42 -0700)
commit6bbfdcbc8e459acda67e32f520f7ecddc391afe9
treed6c957c6cde720b744d719bed82b116852956470
parentb428db1e880d5f0f1cc22009974bee38a095284e
hwmon: (nct7904) Add array fan_alarm and vsen_alarm to store the alarms in nct7904_data struct.

SMI# interrupt for fan and voltage is Two-Times Interrupt Mode.
Fan or voltage exceeds high limit or going below low limit,
it will causes an interrupt if the previous interrupt has been
reset by reading all the interrupt Status Register. Thus, add the
array fan_alarm and vsen_alarm to store the alarms for all of the
fan and voltage sensors.

Signed-off-by: amy.shih <amy.shih@advantech.com.tw>
Link: https://lore.kernel.org/r/20190919030205.11440-1-Amy.Shih@advantech.com.tw
Fixes: 486842db3b79 ("hwmon: (nct7904) Add extra sysfs support for fan, voltage and temperature.")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct7904.c