]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/input/input.c
[PATCH] mark f_ops const in the inode
[net-next-2.6.git] / drivers / input / input.c
index 4fe3da3c667a0ecfa06eefad1759d831aa7f014f..f8af0945964ecf85147a54712e08b73f237101e1 100644 (file)
@@ -923,7 +923,7 @@ void input_unregister_handler(struct input_handler *handler)
 static int input_open_file(struct inode *inode, struct file *file)
 {
        struct input_handler *handler = input_table[iminor(inode) >> 5];
-       struct file_operations *old_fops, *new_fops = NULL;
+       const struct file_operations *old_fops, *new_fops = NULL;
        int err;
 
        /* No load-on-demand here? */