aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r--include/linux/i2c.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index 02fc617782ef..476abd09c921 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -152,6 +152,13 @@ struct i2c_driver {
152 int (*suspend)(struct i2c_client *, pm_message_t mesg); 152 int (*suspend)(struct i2c_client *, pm_message_t mesg);
153 int (*resume)(struct i2c_client *); 153 int (*resume)(struct i2c_client *);
154 154
155 /* Alert callback, for example for the SMBus alert protocol.
156 * The format and meaning of the data value depends on the protocol.
157 * For the SMBus alert protocol, there is a single bit of data passed
158 * as the alert response's low bit ("event flag").
159 */
160 void (*alert)(struct i2c_client *, unsigned int data);
161
155 /* a ioctl like command that can be used to perform specific functions 162 /* a ioctl like command that can be used to perform specific functions
156 * with the device. 163 * with the device.
157 */ 164 */