misc: max9635: move to unlocked_ioctl
authorErik Gilling <konkers@android.com>
Tue, 31 Aug 2010 01:17:46 +0000 (18:17 -0700)
committerColin Cross <ccross@android.com>
Thu, 7 Oct 2010 00:03:33 +0000 (17:03 -0700)
Change-Id: Icde61e693cf67c06042f4ea77e6c529d9281e653

drivers/misc/max9635.c

index 2a8b06ca5b212a069411a8711a2a52dcc6b04c96..5acdc1ab4e9506dcbb01d4323aecda32e823db19 100644 (file)
@@ -346,8 +346,8 @@ static int max9635_misc_open(struct inode *inode, struct file *file)
        return 0;
 }
 
-static int max9635_misc_ioctl(struct inode *inode, struct file *file,
-                             unsigned int cmd, unsigned long arg)
+static long max9635_misc_ioctl(struct file *file,
+                              unsigned int cmd, unsigned long arg)
 {
        void __user *argp = (void __user *)arg;
        u8 enable;
@@ -384,7 +384,7 @@ static int max9635_misc_ioctl(struct inode *inode, struct file *file,
 static const struct file_operations max9635_misc_fops = {
        .owner = THIS_MODULE,
        .open = max9635_misc_open,
-       .ioctl = max9635_misc_ioctl,
+       .unlocked_ioctl = max9635_misc_ioctl,
 };
 
 static struct miscdevice max9635_misc_device = {