Skip to content

Commit c5ebb38

Browse files
Wolfram SangWolfram Sang
authored andcommitted
i2c: add a flag to mark clients as slaves
And update indentation with one more tab, sigh... Tested-by: Andrey Danin <danindrey@mail.ru> Acked-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
1 parent f5005f7 commit c5ebb38

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

include/linux/i2c.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -550,11 +550,12 @@ void i2c_lock_adapter(struct i2c_adapter *);
550550
void i2c_unlock_adapter(struct i2c_adapter *);
551551

552552
/*flags for the client struct: */
553-
#define I2C_CLIENT_PEC 0x04 /* Use Packet Error Checking */
554-
#define I2C_CLIENT_TEN 0x10 /* we have a ten bit chip address */
553+
#define I2C_CLIENT_PEC 0x04 /* Use Packet Error Checking */
554+
#define I2C_CLIENT_TEN 0x10 /* we have a ten bit chip address */
555555
/* Must equal I2C_M_TEN below */
556-
#define I2C_CLIENT_WAKE 0x80 /* for board_info; true iff can wake */
557-
#define I2C_CLIENT_SCCB 0x9000 /* Use Omnivision SCCB protocol */
556+
#define I2C_CLIENT_SLAVE 0x20 /* we are the slave */
557+
#define I2C_CLIENT_WAKE 0x80 /* for board_info; true iff can wake */
558+
#define I2C_CLIENT_SCCB 0x9000 /* Use Omnivision SCCB protocol */
558559
/* Must match I2C_M_STOP|IGNORE_NAK */
559560

560561
/* i2c adapter classes (bitmask) */

0 commit comments

Comments
 (0)