aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@computergmbh.de>2008-01-22 14:51:11 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-02-01 17:35:04 -0500
commit0b3f5fe673d4626ea91816ca9c486b43b39a2fd1 (patch)
tree56a7ccf80894b01d739ae2774c455700df674d86 /drivers/usb
parenta1cd7e99b343543af2be4c8c5755e26f6bfd725a (diff)
USB: constify function pointer tables
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/misc/iowarrior.c2
-rw-r--r--drivers/usb/mon/mon_bin.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/misc/iowarrior.c b/drivers/usb/misc/iowarrior.c
index 764696ff1e8e..801070502cc1 100644
--- a/drivers/usb/misc/iowarrior.c
+++ b/drivers/usb/misc/iowarrior.c
@@ -715,7 +715,7 @@ static unsigned iowarrior_poll(struct file *file, poll_table * wait)
715 * would use "struct net_driver" instead, and a serial 715 * would use "struct net_driver" instead, and a serial
716 * device would use "struct tty_driver". 716 * device would use "struct tty_driver".
717 */ 717 */
718static struct file_operations iowarrior_fops = { 718static const struct file_operations iowarrior_fops = {
719 .owner = THIS_MODULE, 719 .owner = THIS_MODULE,
720 .write = iowarrior_write, 720 .write = iowarrior_write,
721 .read = iowarrior_read, 721 .read = iowarrior_read,
diff --git a/drivers/usb/mon/mon_bin.c b/drivers/usb/mon/mon_bin.c
index d70666f1a90d..1774ba5c4c3b 100644
--- a/drivers/usb/mon/mon_bin.c
+++ b/drivers/usb/mon/mon_bin.c
@@ -1081,7 +1081,7 @@ int mon_bin_mmap(struct file *filp, struct vm_area_struct *vma)
1081 1081
1082#endif /* 0 */ 1082#endif /* 0 */
1083 1083
1084static struct file_operations mon_fops_binary = { 1084static const struct file_operations mon_fops_binary = {
1085 .owner = THIS_MODULE, 1085 .owner = THIS_MODULE,
1086 .open = mon_bin_open, 1086 .open = mon_bin_open,
1087 .llseek = no_llseek, 1087 .llseek = no_llseek,