Use the new batched user accesses in generic user string handling
[firefly-linux-kernel-4.4.55.git] / drivers / char / bfin-otp.c
index e3dd24bff5143206df8c4345fc1fce56fe492cda..44660f1c484932cc24421372558b5e8ed0049147 100644 (file)
@@ -217,11 +217,12 @@ static long bfin_otp_ioctl(struct file *filp, unsigned cmd, unsigned long arg)
 # define bfin_otp_ioctl NULL
 #endif
 
-static struct file_operations bfin_otp_fops = {
+static const struct file_operations bfin_otp_fops = {
        .owner          = THIS_MODULE,
        .unlocked_ioctl = bfin_otp_ioctl,
        .read           = bfin_otp_read,
        .write          = bfin_otp_write,
+       .llseek         = default_llseek,
 };
 
 static struct miscdevice bfin_otp_misc_device = {