aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2009-09-21 20:01:09 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-22 10:17:24 -0400
commitb87221de6a4934eda856475a0065688d12973a04 (patch)
tree6bcf0628e106c4833538f4c23d710fbbe3d7609a /drivers/usb
parent0d54b217a247f39605361f867fefbb9e099a5432 (diff)
const: mark remaining super_operations const
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/inode.c3
-rw-r--r--drivers/usb/gadget/inode.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/core/inode.c b/drivers/usb/core/inode.c
index ffe75e83787c..97b40ce133f0 100644
--- a/drivers/usb/core/inode.c
+++ b/drivers/usb/core/inode.c
@@ -48,7 +48,6 @@
48#define USBFS_DEFAULT_BUSMODE (S_IXUGO | S_IRUGO) 48#define USBFS_DEFAULT_BUSMODE (S_IXUGO | S_IRUGO)
49#define USBFS_DEFAULT_LISTMODE S_IRUGO 49#define USBFS_DEFAULT_LISTMODE S_IRUGO
50 50
51static struct super_operations usbfs_ops;
52static const struct file_operations default_file_operations; 51static const struct file_operations default_file_operations;
53static struct vfsmount *usbfs_mount; 52static struct vfsmount *usbfs_mount;
54static int usbfs_mount_count; /* = 0 */ 53static int usbfs_mount_count; /* = 0 */
@@ -449,7 +448,7 @@ static const struct file_operations default_file_operations = {
449 .llseek = default_file_lseek, 448 .llseek = default_file_lseek,
450}; 449};
451 450
452static struct super_operations usbfs_ops = { 451static const struct super_operations usbfs_ops = {
453 .statfs = simple_statfs, 452 .statfs = simple_statfs,
454 .drop_inode = generic_delete_inode, 453 .drop_inode = generic_delete_inode,
455 .remount_fs = remount, 454 .remount_fs = remount,
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c
index 7d33f50b5874..c44367fea185 100644
--- a/drivers/usb/gadget/inode.c
+++ b/drivers/usb/gadget/inode.c
@@ -2033,7 +2033,7 @@ gadgetfs_create_file (struct super_block *sb, char const *name,
2033 return inode; 2033 return inode;
2034} 2034}
2035 2035
2036static struct super_operations gadget_fs_operations = { 2036static const struct super_operations gadget_fs_operations = {
2037 .statfs = simple_statfs, 2037 .statfs = simple_statfs,
2038 .drop_inode = generic_delete_inode, 2038 .drop_inode = generic_delete_inode,
2039}; 2039};