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>
This commit is contained in:

committed by
Guenter Roeck

부모
51c2a4871c
커밋
4b5e536b0e
@@ -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;
|
||||
|
Reference in New Issue
Block a user