summaryrefslogtreecommitdiffstats
path: root/kernel/include/uapi/linux/i2c-dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/uapi/linux/i2c-dev.h')
-rw-r--r--kernel/include/uapi/linux/i2c-dev.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/include/uapi/linux/i2c-dev.h b/kernel/include/uapi/linux/i2c-dev.h
index 3f3115517..2f05e66de 100644
--- a/kernel/include/uapi/linux/i2c-dev.h
+++ b/kernel/include/uapi/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 /* _UAPI_LINUX_I2C_DEV_H */