From: I Viswanath Date: Wed, 9 Jul 2025 15:07:18 +0000 (+0530) Subject: i2c: Clarify behavior of I2C_M_RD flag X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3ff7f06c7876bc292cac1c7d4df3d0bfd74f3b7;p=thirdparty%2Fkernel%2Fstable.git i2c: Clarify behavior of I2C_M_RD flag Update the description of I2C_M_RD to clarify that not setting it signals a write transaction Signed-off-by: I Viswanath Signed-off-by: Wolfram Sang --- diff --git a/include/uapi/linux/i2c.h b/include/uapi/linux/i2c.h index 92326ebde3507..a2db2a56c8b01 100644 --- a/include/uapi/linux/i2c.h +++ b/include/uapi/linux/i2c.h @@ -21,7 +21,8 @@ * * @flags: * Supported by all adapters: - * %I2C_M_RD: read data (from slave to master). Guaranteed to be 0x0001! + * %I2C_M_RD: read data (from slave to master). Guaranteed to be 0x0001! If + * not set, the transaction is interpreted as write. * * Optional: * %I2C_M_DMA_SAFE: the buffer of this message is DMA safe. Makes only sense