This source file includes following definitions.
- of_i2c_setup_smbus_alert
1
2
3
4
5
6
7
8 #ifndef _LINUX_I2C_SMBUS_H
9 #define _LINUX_I2C_SMBUS_H
10
11 #include <linux/i2c.h>
12 #include <linux/spinlock.h>
13 #include <linux/workqueue.h>
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 struct i2c_smbus_alert_setup {
31 int irq;
32 };
33
34 struct i2c_client *i2c_setup_smbus_alert(struct i2c_adapter *adapter,
35 struct i2c_smbus_alert_setup *setup);
36 int i2c_handle_smbus_alert(struct i2c_client *ara);
37
38 #if IS_ENABLED(CONFIG_I2C_SMBUS) && IS_ENABLED(CONFIG_OF)
39 int of_i2c_setup_smbus_alert(struct i2c_adapter *adap);
40 #else
41 static inline int of_i2c_setup_smbus_alert(struct i2c_adapter *adap)
42 {
43 return 0;
44 }
45 #endif
46
47 #endif