USB: constify function pointer tables
authorJan Engelhardt <jengelh@computergmbh.de>
Tue, 22 Jan 2008 19:51:11 +0000 (20:51 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Feb 2008 22:35:04 +0000 (14:35 -0800)
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/iowarrior.c
drivers/usb/mon/mon_bin.c

index 764696ff1e8e27838255834b79f084f6358751f8..801070502cc1b14faa0bd3769247154f2935736f 100644 (file)
@@ -715,7 +715,7 @@ static unsigned iowarrior_poll(struct file *file, poll_table * wait)
  * would use "struct net_driver" instead, and a serial
  * device would use "struct tty_driver".
  */
-static struct file_operations iowarrior_fops = {
+static const struct file_operations iowarrior_fops = {
        .owner = THIS_MODULE,
        .write = iowarrior_write,
        .read = iowarrior_read,
index d70666f1a90d0df264dcd27a1cd3d5abd2c1d5a2..1774ba5c4c3bf8944118d7b13c944f07370a1529 100644 (file)
@@ -1081,7 +1081,7 @@ int mon_bin_mmap(struct file *filp, struct vm_area_struct *vma)
 
 #endif  /*  0  */
 
-static struct file_operations mon_fops_binary = {
+static const struct file_operations mon_fops_binary = {
        .owner =        THIS_MODULE,
        .open =         mon_bin_open,
        .llseek =       no_llseek,