]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
i2c: Clarify behavior of I2C_M_RD flag
authorI Viswanath <viswanathiyyappan@gmail.com>
Wed, 9 Jul 2025 15:07:18 +0000 (20:37 +0530)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 14 Jul 2025 07:15:58 +0000 (09:15 +0200)
Update the description of I2C_M_RD to clarify that not setting it
signals a write transaction

Signed-off-by: I Viswanath <viswanathiyyappan@gmail.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
include/uapi/linux/i2c.h

index 92326ebde3507f44aeb71dc7237026a5839b0cf6..a2db2a56c8b01ec245a4acfe4ea7b7cef472cf6a 100644 (file)
@@ -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