Skip to contentSkip to conversation

staging: wilc1000: declare 'fops' as const

PATCH New Eva Rachel Retuya 1 participant 1 message Feb 15, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 drivers/staging/wilc1000/wilc_debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/wilc1000/wilc_debugfs.c +1 -1
index da7ec8b..a27b077 100644
@@ -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[] = {
Signature · 1 line
1.9.1