[PATCH] i2c: fix comment typo in i2c.h

Degao Lan posted 1 patch 1 day, 1 hour ago
include/linux/i2c.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] i2c: fix comment typo in i2c.h
Posted by Degao Lan 1 day, 1 hour ago
There is a typo in comment. We should fix this.

Signed-off-by: Degao Lan <landegao@sina.com>
---
 include/linux/i2c.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index 20fd41b51..f1136cff0 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -335,7 +335,7 @@ struct i2c_client {
 					/* Must equal I2C_M_TEN below */
 #define I2C_CLIENT_SLAVE	0x20	/* we are the slave */
 #define I2C_CLIENT_HOST_NOTIFY	0x40	/* We want to use I2C host notify */
-#define I2C_CLIENT_WAKE		0x80	/* for board_info; true iff can wake */
+#define I2C_CLIENT_WAKE		0x80	/* for board_info; true if can wake */
 #define I2C_CLIENT_SCCB		0x9000	/* Use Omnivision SCCB protocol */
 					/* Must match I2C_M_STOP|IGNORE_NAK */
 
-- 
2.34.1
Re: [PATCH] i2c: fix comment typo in i2c.h
Posted by Wolfram Sang 19 hours ago
On Sun, Sep 07, 2025 at 10:01:11PM +0800, Degao Lan wrote:
> There is a typo in comment. We should fix this.

No, 'iff' means 'if and only if'.