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

Commit 828c0950 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds
Browse files

const: constify remaining file_operations



[akpm@linux-foundation.org: fix KVM]
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1c4115e5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -195,7 +195,7 @@ static int clk_debugfs_open(struct inode *inode, struct file *file)
	return single_open(file, clk_debugfs_show, NULL);
}

static struct file_operations clk_debugfs_operations = {
static const struct file_operations clk_debugfs_operations = {
	.open = clk_debugfs_open,
	.read = seq_read,
	.llseek = seq_lseek,
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ coreb_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned l
	return ret;
}

static struct file_operations coreb_fops = {
static const struct file_operations coreb_fops = {
	.owner   = THIS_MODULE,
	.ioctl   = coreb_ioctl,
};
+1 −1
Original line number Diff line number Diff line
@@ -244,7 +244,7 @@ static unsigned sync_serial_prescale_shadow;

#define NUMBER_OF_PORTS 2

static struct file_operations sync_serial_fops = {
static const struct file_operations sync_serial_fops = {
	.owner   = THIS_MODULE,
	.write   = sync_serial_write,
	.read    = sync_serial_read,
+1 −1
Original line number Diff line number Diff line
@@ -855,7 +855,7 @@ gpio_leds_ioctl(unsigned int cmd, unsigned long arg)
	return 0;
}

struct file_operations gpio_fops = {
static const struct file_operations gpio_fops = {
	.owner       = THIS_MODULE,
	.poll        = gpio_poll,
	.ioctl       = gpio_ioctl,
+1 −1
Original line number Diff line number Diff line
@@ -201,7 +201,7 @@ static int kvmppc_exit_timing_open(struct inode *inode, struct file *file)
	return single_open(file, kvmppc_exit_timing_show, inode->i_private);
}

static struct file_operations kvmppc_exit_timing_fops = {
static const struct file_operations kvmppc_exit_timing_fops = {
	.owner   = THIS_MODULE,
	.open    = kvmppc_exit_timing_open,
	.read    = seq_read,
Loading