]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm90) Define status bits
authorWei Ni <wni@nvidia.com>
Fri, 15 Nov 2013 09:40:38 +0000 (10:40 +0100)
committerJean Delvare <khali@endymion.delvare>
Fri, 15 Nov 2013 09:40:38 +0000 (10:40 +0100)
commit585898b7bfe20a90d13abbb743ff408a8b7fdc24
tree991559b32ea0d0f6e4b0e26a1d636c34035ecb52
parentb1de995b0fbb04568d51430af30e8f5854c0c6bc
hwmon: (lm90) Define status bits

Add bit defines for the status register. And add a function
lm90_is_tripped() which will read status register and return
tripped or not, then lm90_alert can call it directly, and in the
future the IRQ thread also can use it.

[JD: Adjusted to include all the new MAX6696 status flags.]

Signed-off-by: Wei Ni <wni@nvidia.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/lm90.c