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;
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 = {