]> err.no Git - linux-2.6/commitdiff
USB: uhci: mark root_hub_hub_des[] as const
authorMing Lei <tom.leiming@gmail.com>
Sun, 8 Jun 2008 08:44:40 +0000 (16:44 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Jul 2008 22:16:30 +0000 (15:16 -0700)
mark this array as const because it is read-only

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/uhci-hub.c

index 8e4427aebb142e00d79b83e4624697b8d746ce33..885b585360b967f23661c015dd8945371f5fa058 100644 (file)
@@ -12,7 +12,7 @@
  * (C) Copyright 2004 Alan Stern, stern@rowland.harvard.edu
  */
 
-static __u8 root_hub_hub_des[] =
+static const __u8 root_hub_hub_des[] =
 {
        0x09,                   /*  __u8  bLength; */
        0x29,                   /*  __u8  bDescriptorType; Hub-descriptor */