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

Commit e2bd470e authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Dmitry Torokhov
Browse files

Input: prepare for f_ops constness



Avoid doing assignments to a live ->fops so it can be marked as 'const'.

Signed-off-by: default avatarArjan van de Ven <arjan@infradead.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent c28c3583
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -477,8 +477,8 @@ static int __init input_proc_init(void)

	entry->owner = THIS_MODULE;
	input_fileops = *entry->proc_fops;
	input_fileops.poll = input_devices_poll;
	entry->proc_fops = &input_fileops;
	entry->proc_fops->poll = input_devices_poll;

	entry = create_proc_read_entry("handlers", 0, proc_bus_input_dir, input_handlers_read, NULL);
	if (!entry)