[PATCH i2c-tools] i2c-dev.h: copy over typo fix from kernel include

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We had a typo in a define which got fixed in the kernel. Fix it here,
too!

Signed-off-by: Wolfram Sang <wsa@xxxxxxxxxxxxx>
---
 include/linux/i2c-dev.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/linux/i2c-dev.h b/include/linux/i2c-dev.h
index 839d25a..bbb50e8 100644
--- a/include/linux/i2c-dev.h
+++ b/include/linux/i2c-dev.h
@@ -66,7 +66,9 @@ struct i2c_rdwr_ioctl_data {
 	__u32 nmsgs;			/* number of i2c_msgs */
 };
 
-#define  I2C_RDRW_IOCTL_MAX_MSGS	42
+#define  I2C_RDWR_IOCTL_MAX_MSGS	42
+/* Originally defined with a typo, keep it for compatibility */
+#define  I2C_RDRW_IOCTL_MAX_MSGS	I2C_RDWR_IOCTL_MAX_MSGS
 
 
 #endif /* _LINUX_I2C_DEV_H */
-- 
2.11.0




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux