diff options
| author | 2006-08-05 20:37:11 -0300 | |
|---|---|---|
| committer | 2006-09-27 11:58:52 -0700 | |
| commit | 066202dd48cf3296b6cc22b5fcf89aef33fa0efc (patch) | |
| tree | 1730104f5b1634e0dca42c5ea7a331fb1c773813 /drivers/usb/core/file.c | |
| parent | USB: gmidi: New USB MIDI Gadget class driver. (diff) | |
| download | wireguard-linux-066202dd48cf3296b6cc22b5fcf89aef33fa0efc.tar.xz wireguard-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/core/file.c')
| -rw-r--r-- | drivers/usb/core/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/file.c b/drivers/usb/core/file.c index 8de4f8c99d61..c376c655c5de 100644 --- a/drivers/usb/core/file.c +++ b/drivers/usb/core/file.c @@ -55,7 +55,7 @@ static int usb_open(struct inode * inode, struct file * file) return err; } -static struct file_operations usb_fops = { +static const struct file_operations usb_fops = { .owner = THIS_MODULE, .open = usb_open, }; |
