diff options
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r-- | include/linux/i2c.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 195d8b3d9cfb..ddfa04108baf 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
@@ -232,6 +232,7 @@ struct i2c_client { | |||
232 | #define to_i2c_client(d) container_of(d, struct i2c_client, dev) | 232 | #define to_i2c_client(d) container_of(d, struct i2c_client, dev) |
233 | 233 | ||
234 | extern struct i2c_client *i2c_verify_client(struct device *dev); | 234 | extern struct i2c_client *i2c_verify_client(struct device *dev); |
235 | extern struct i2c_adapter *i2c_verify_adapter(struct device *dev); | ||
235 | 236 | ||
236 | static inline struct i2c_client *kobj_to_i2c_client(struct kobject *kobj) | 237 | static inline struct i2c_client *kobj_to_i2c_client(struct kobject *kobj) |
237 | { | 238 | { |
@@ -540,7 +541,7 @@ struct i2c_msg { | |||
540 | __u16 flags; | 541 | __u16 flags; |
541 | #define I2C_M_TEN 0x0010 /* this is a ten bit chip address */ | 542 | #define I2C_M_TEN 0x0010 /* this is a ten bit chip address */ |
542 | #define I2C_M_RD 0x0001 /* read data, from slave to master */ | 543 | #define I2C_M_RD 0x0001 /* read data, from slave to master */ |
543 | #define I2C_M_NOSTART 0x4000 /* if I2C_FUNC_PROTOCOL_MANGLING */ | 544 | #define I2C_M_NOSTART 0x4000 /* if I2C_FUNC_NOSTART */ |
544 | #define I2C_M_REV_DIR_ADDR 0x2000 /* if I2C_FUNC_PROTOCOL_MANGLING */ | 545 | #define I2C_M_REV_DIR_ADDR 0x2000 /* if I2C_FUNC_PROTOCOL_MANGLING */ |
545 | #define I2C_M_IGNORE_NAK 0x1000 /* if I2C_FUNC_PROTOCOL_MANGLING */ | 546 | #define I2C_M_IGNORE_NAK 0x1000 /* if I2C_FUNC_PROTOCOL_MANGLING */ |
546 | #define I2C_M_NO_RD_ACK 0x0800 /* if I2C_FUNC_PROTOCOL_MANGLING */ | 547 | #define I2C_M_NO_RD_ACK 0x0800 /* if I2C_FUNC_PROTOCOL_MANGLING */ |
@@ -553,8 +554,9 @@ struct i2c_msg { | |||
553 | 554 | ||
554 | #define I2C_FUNC_I2C 0x00000001 | 555 | #define I2C_FUNC_I2C 0x00000001 |
555 | #define I2C_FUNC_10BIT_ADDR 0x00000002 | 556 | #define I2C_FUNC_10BIT_ADDR 0x00000002 |
556 | #define I2C_FUNC_PROTOCOL_MANGLING 0x00000004 /* I2C_M_NOSTART etc. */ | 557 | #define I2C_FUNC_PROTOCOL_MANGLING 0x00000004 /* I2C_M_IGNORE_NAK etc. */ |
557 | #define I2C_FUNC_SMBUS_PEC 0x00000008 | 558 | #define I2C_FUNC_SMBUS_PEC 0x00000008 |
559 | #define I2C_FUNC_NOSTART 0x00000010 /* I2C_M_NOSTART */ | ||
558 | #define I2C_FUNC_SMBUS_BLOCK_PROC_CALL 0x00008000 /* SMBus 2.0 */ | 560 | #define I2C_FUNC_SMBUS_BLOCK_PROC_CALL 0x00008000 /* SMBus 2.0 */ |
559 | #define I2C_FUNC_SMBUS_QUICK 0x00010000 | 561 | #define I2C_FUNC_SMBUS_QUICK 0x00010000 |
560 | #define I2C_FUNC_SMBUS_READ_BYTE 0x00020000 | 562 | #define I2C_FUNC_SMBUS_READ_BYTE 0x00020000 |