Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb3b9cf8 authored by Arnd Bergmann's avatar Arnd Bergmann
Browse files

raw: use explicit llseek file operations



The raw_fops may need to seek, so there should
be an explicit reference to default_llseek.
raw_ctl_fops does not contain a read or write
method, so we use noop_llseek to ignore seeking
requests without an error.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 275bd41a
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -258,6 +258,7 @@ static const struct file_operations raw_fops = {
	.open		= raw_open,
	.open		= raw_open,
	.release	= raw_release,
	.release	= raw_release,
	.unlocked_ioctl = raw_ioctl,
	.unlocked_ioctl = raw_ioctl,
	.llseek		= default_llseek,
	.owner		= THIS_MODULE,
	.owner		= THIS_MODULE,
};
};


@@ -265,6 +266,7 @@ static const struct file_operations raw_ctl_fops = {
	.unlocked_ioctl = raw_ctl_ioctl,
	.unlocked_ioctl = raw_ctl_ioctl,
	.open		= raw_open,
	.open		= raw_open,
	.owner		= THIS_MODULE,
	.owner		= THIS_MODULE,
	.llseek		= noop_llseek,
};
};


static struct cdev raw_cdev;
static struct cdev raw_cdev;