i2c: guarantee that I2C_M_RD will be 0x0001 forever
authorWolfram Sang <wsa@the-dreams.de>
Sun, 3 Apr 2016 18:44:44 +0000 (20:44 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 11 Apr 2016 16:54:59 +0000 (18:54 +0200)
commite28b124564e648d933337a0708dae1323c518af7
tree616a6cfaedc904c000f72c725009fc8a0c4642f7
parentbf16200689118d19de1b8d2a3c314fc21f5dc7bb
i2c: guarantee that I2C_M_RD will be 0x0001 forever

There is code out there in user space and kernel space which relies on
I2C_M_RD being bit 0 to simplify their bit operations. Add a comment to
make sure this will never break. Do proper sorting of the defines while
we are here.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
include/uapi/linux/i2c.h