diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-03-12 11:38:47 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-04-07 21:16:38 -0700 |
commit | 4b5e536b0e948b5c756aa1d57218371c242f768d (patch) | |
tree | 2550bb81ab1b0712f190f030c7cead7fc74e7aa8 /drivers/hwmon/adt7x10.h | |
parent | 51c2a4871c1b47255ff8d74f0a86b2a0defff319 (diff) | |
download | linux-4b5e536b0e948b5c756aa1d57218371c242f768d.tar.gz linux-4b5e536b0e948b5c756aa1d57218371c242f768d.tar.bz2 linux-4b5e536b0e948b5c756aa1d57218371c242f768d.zip |
hwmon: (adt7x10) Add alarm interrupt support
This allows an userspace application to poll() on the alarm files to get
notified in case of a temperature threshold event.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/adt7x10.h')
-rw-r--r-- | drivers/hwmon/adt7x10.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/adt7x10.h b/drivers/hwmon/adt7x10.h index 803d9b91c5db..d491c698529e 100644 --- a/drivers/hwmon/adt7x10.h +++ b/drivers/hwmon/adt7x10.h @@ -23,9 +23,9 @@ struct adt7x10_ops { int (*write_word)(struct device *, u8 reg, u16 data); }; -int adt7x10_probe(struct device *dev, const char *name, +int adt7x10_probe(struct device *dev, const char *name, int irq, const struct adt7x10_ops *ops); -int adt7x10_remove(struct device *dev); +int adt7x10_remove(struct device *dev, int irq); #ifdef CONFIG_PM_SLEEP extern const struct dev_pm_ops adt7x10_dev_pm_ops; |