]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: wilc1000: declare 'fops' as const
authorEva Rachel Retuya <eraretuya@gmail.com>
Mon, 15 Feb 2016 05:52:15 +0000 (13:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Feb 2016 02:24:07 +0000 (18:24 -0800)
Change the declaration of the file_operations structure 'fops' into
const as suggested by checkpatch.

WARNING: struct file_operations should normally be const

Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_debugfs.c

index da7ec8bb0dd4363e47407822eb2cff81d1dcffe7..a27b077386e580899037ed1f812040759fbcd5d5 100644 (file)
@@ -130,7 +130,7 @@ struct wilc_debugfs_info_t {
        const char *name;
        int perm;
        unsigned int data;
-       struct file_operations fops;
+       const struct file_operations fops;
 };
 
 static struct wilc_debugfs_info_t debugfs_info[] = {