summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2015-05-14 14:40:02 +0200
committerWolfram Sang <wsa@the-dreams.de>2015-06-01 08:07:08 +0900
commit83caf9896a48de5f838227162c25de405c61ea9d (patch)
treec76ac305794f4a2488e882c1d1ad3f5f59f0358f
parentf6505fbabc426b9e293da5bb702ace2eb1ccf87d (diff)
downloadop-kernel-dev-83caf9896a48de5f838227162c25de405c61ea9d.zip
op-kernel-dev-83caf9896a48de5f838227162c25de405c61ea9d.tar.gz
i2c: add FUNC flag for slave capabilities
So users can check in advance if there is slave support. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r--include/uapi/linux/i2c.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/i2c.h b/include/uapi/linux/i2c.h
index 0e949cb..b0a7dd6 100644
--- a/include/uapi/linux/i2c.h
+++ b/include/uapi/linux/i2c.h
@@ -87,6 +87,7 @@ struct i2c_msg {
#define I2C_FUNC_PROTOCOL_MANGLING 0x00000004 /* I2C_M_IGNORE_NAK etc. */
#define I2C_FUNC_SMBUS_PEC 0x00000008
#define I2C_FUNC_NOSTART 0x00000010 /* I2C_M_NOSTART */
+#define I2C_FUNC_SLAVE 0x00000020
#define I2C_FUNC_SMBUS_BLOCK_PROC_CALL 0x00008000 /* SMBus 2.0 */
#define I2C_FUNC_SMBUS_QUICK 0x00010000
#define I2C_FUNC_SMBUS_READ_BYTE 0x00020000
OpenPOWER on IntegriCloud