summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/uhci-debug.c
diff options
context:
space:
mode:
authorLuiz Fernando N. Capitulino2006-08-06 01:37:11 +0200
committerGreg Kroah-Hartman2006-09-27 20:58:52 +0200
commit066202dd48cf3296b6cc22b5fcf89aef33fa0efc (patch)
tree1730104f5b1634e0dca42c5ea7a331fb1c773813 /drivers/usb/host/uhci-debug.c
parentUSB: gmidi: New USB MIDI Gadget class driver. (diff)
downloadkernel-qcow2-linux-066202dd48cf3296b6cc22b5fcf89aef33fa0efc.tar.gz
kernel-qcow2-linux-066202dd48cf3296b6cc22b5fcf89aef33fa0efc.tar.xz
kernel-qcow2-linux-066202dd48cf3296b6cc22b5fcf89aef33fa0efc.zip
USB: Make file operations structs in drivers/usb const.
Making structs const prevents accidental bugs and with the proper debug options they're protected against corruption. Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/uhci-debug.c')
-rw-r--r--drivers/usb/host/uhci-debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/uhci-debug.c b/drivers/usb/host/uhci-debug.c
index d1372cb27f33..e345f15b7d87 100644
--- a/drivers/usb/host/uhci-debug.c
+++ b/drivers/usb/host/uhci-debug.c
@@ -16,7 +16,7 @@
#include "uhci-hcd.h"
-#define uhci_debug_operations (* (struct file_operations *) NULL)
+#define uhci_debug_operations (* (const struct file_operations *) NULL)
static struct dentry *uhci_debugfs_root;
#ifdef DEBUG
@@ -500,7 +500,7 @@ static int uhci_debug_release(struct inode *inode, struct file *file)
}
#undef uhci_debug_operations
-static struct file_operations uhci_debug_operations = {
+static const struct file_operations uhci_debug_operations = {
.owner = THIS_MODULE,
.open = uhci_debug_open,
.llseek = uhci_debug_lseek,