Skip to content

Commit c3ff7f0

Browse files
CraftyChimeraWolfram Sang
authored andcommitted
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 <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 6b07ea7 commit c3ff7f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/uapi/linux/i2c.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
*
2222
* @flags:
2323
* Supported by all adapters:
24-
* %I2C_M_RD: read data (from slave to master). Guaranteed to be 0x0001!
24+
* %I2C_M_RD: read data (from slave to master). Guaranteed to be 0x0001! If
25+
* not set, the transaction is interpreted as write.
2526
*
2627
* Optional:
2728
* %I2C_M_DMA_SAFE: the buffer of this message is DMA safe. Makes only sense

0 commit comments

Comments
 (0)