Skip to content
Commit 6bbfdcbc authored by amy.shih's avatar amy.shih Committed by Guenter Roeck
Browse files

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: default avataramy.shih <amy.shih@advantech.com.tw>
Link: https://lore.kernel.org/r/20190919030205.11440-1-Amy.Shih@advantech.com.tw


Fixes: 486842db ("hwmon: (nct7904) Add extra sysfs support for fan, voltage and temperature.")
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent b428db1e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment