diff options
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r-- | include/linux/i2c.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 02fc617782e..0a5da639b32 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
@@ -53,6 +53,7 @@ struct i2c_board_info; | |||
53 | * on a bus (or read from them). Apart from two basic transfer functions to | 53 | * on a bus (or read from them). Apart from two basic transfer functions to |
54 | * transmit one message at a time, a more complex version can be used to | 54 | * transmit one message at a time, a more complex version can be used to |
55 | * transmit an arbitrary number of messages without interruption. | 55 | * transmit an arbitrary number of messages without interruption. |
56 | * @count must be be less than 64k since msg.len is u16. | ||
56 | */ | 57 | */ |
57 | extern int i2c_master_send(struct i2c_client *client, const char *buf, | 58 | extern int i2c_master_send(struct i2c_client *client, const char *buf, |
58 | int count); | 59 | int count); |
@@ -152,6 +153,13 @@ struct i2c_driver { | |||
152 | int (*suspend)(struct i2c_client *, pm_message_t mesg); | 153 | int (*suspend)(struct i2c_client *, pm_message_t mesg); |
153 | int (*resume)(struct i2c_client *); | 154 | int (*resume)(struct i2c_client *); |
154 | 155 | ||
156 | /* Alert callback, for example for the SMBus alert protocol. | ||
157 | * The format and meaning of the data value depends on the protocol. | ||
158 | * For the SMBus alert protocol, there is a single bit of data passed | ||
159 | * as the alert response's low bit ("event flag"). | ||
160 | */ | ||
161 | void (*alert)(struct i2c_client *, unsigned int data); | ||
162 | |||
155 | /* a ioctl like command that can be used to perform specific functions | 163 | /* a ioctl like command that can be used to perform specific functions |
156 | * with the device. | 164 | * with the device. |
157 | */ | 165 | */ |