summaryrefslogtreecommitdiff
path: root/fs/compat_ioctl.c
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2015-09-08 12:05:49 +0300
committerWolfram Sang <wsa@the-dreams.de>2015-10-24 00:26:43 +0300
commitc57d3e7a9391c03ae7ee5572be850284393f5bef (patch)
tree5a1cb37a4a7b31853217b4f213d2d43e68d01c86 /fs/compat_ioctl.c
parentd64d45cb95e6f9edf58fab49cfc5a7a60ff1a122 (diff)
downloadlinux-c57d3e7a9391c03ae7ee5572be850284393f5bef.tar.xz
i2c-dev: Fix typo in ioctl name reference
The ioctl is named I2C_RDWR for "I2C read/write". But references to it were misspelled "rdrw". Fix them. Signed-off-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'fs/compat_ioctl.c')
-rw-r--r--fs/compat_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index 48851f6ea6ec..dcf26537c935 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -686,7 +686,7 @@ static int do_i2c_rdwr_ioctl(unsigned int fd, unsigned int cmd,
if (get_user(nmsgs, &udata->nmsgs))
return -EFAULT;
- if (nmsgs > I2C_RDRW_IOCTL_MAX_MSGS)
+ if (nmsgs > I2C_RDWR_IOCTL_MAX_MSGS)
return -EINVAL;
if (get_user(datap, &udata->msgs))