瀏覽代碼

staging: wilc1000: declare 'fops' as const

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>
Eva Rachel Retuya 9 年之前
父節點
當前提交
8a7b2b1815
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/staging/wilc1000/wilc_debugfs.c

+ 1 - 1
drivers/staging/wilc1000/wilc_debugfs.c

@@ -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[] = {