]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9e3b7a01f054bcbf100db3db53b0e4c2b13d6301
tree616a6cfaedc904c000f72c725009fc8a0c4642f7
parent41aa7f45df2316f92d6d78cf3cd4e54d1bd39973
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