diff options
Diffstat (limited to 'drivers/i2c/i2c-dev.c')
-rw-r--r-- | drivers/i2c/i2c-dev.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c index d34c14c81c29..e96d98696782 100644 --- a/drivers/i2c/i2c-dev.c +++ b/drivers/i2c/i2c-dev.c | |||
@@ -366,8 +366,7 @@ static noinline int i2cdev_ioctl_smbus(struct i2c_client *client, | |||
366 | return res; | 366 | return res; |
367 | } | 367 | } |
368 | 368 | ||
369 | static int i2cdev_ioctl(struct inode *inode, struct file *file, | 369 | static long i2cdev_ioctl(struct file *file, unsigned int cmd, unsigned long arg) |
370 | unsigned int cmd, unsigned long arg) | ||
371 | { | 370 | { |
372 | struct i2c_client *client = (struct i2c_client *)file->private_data; | 371 | struct i2c_client *client = (struct i2c_client *)file->private_data; |
373 | unsigned long funcs; | 372 | unsigned long funcs; |
@@ -487,7 +486,7 @@ static const struct file_operations i2cdev_fops = { | |||
487 | .llseek = no_llseek, | 486 | .llseek = no_llseek, |
488 | .read = i2cdev_read, | 487 | .read = i2cdev_read, |
489 | .write = i2cdev_write, | 488 | .write = i2cdev_write, |
490 | .ioctl = i2cdev_ioctl, | 489 | .unlocked_ioctl = i2cdev_ioctl, |
491 | .open = i2cdev_open, | 490 | .open = i2cdev_open, |
492 | .release = i2cdev_release, | 491 | .release = i2cdev_release, |
493 | }; | 492 | }; |