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>
此提交包含在:
@@ -47,12 +47,12 @@ static int adt7410_i2c_probe(struct i2c_client *client,
|
||||
I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA))
|
||||
return -ENODEV;
|
||||
|
||||
return adt7x10_probe(&client->dev, NULL, &adt7410_i2c_ops);
|
||||
return adt7x10_probe(&client->dev, NULL, client->irq, &adt7410_i2c_ops);
|
||||
}
|
||||
|
||||
static int adt7410_i2c_remove(struct i2c_client *client)
|
||||
{
|
||||
return adt7x10_remove(&client->dev);
|
||||
return adt7x10_remove(&client->dev, client->irq);
|
||||
}
|
||||
|
||||
static const struct i2c_device_id adt7410_ids[] = {
|
||||
|
新增問題並參考
封鎖使用者