Skip to content

Commit e2bd470

Browse files
Arjan van de VenDmitry Torokhov
authored andcommitted
Input: prepare for f_ops constness
Avoid doing assignments to a live ->fops so it can be marked as 'const'. Signed-off-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
1 parent c28c358 commit e2bd470

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/input/input.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,8 @@ static int __init input_proc_init(void)
477477

478478
entry->owner = THIS_MODULE;
479479
input_fileops = *entry->proc_fops;
480+
input_fileops.poll = input_devices_poll;
480481
entry->proc_fops = &input_fileops;
481-
entry->proc_fops->poll = input_devices_poll;
482482

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

0 commit comments

Comments
 (0)