Skip to content

Commit

Permalink
USB: uhci: mark root_hub_hub_des[] as const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ming Lei authored and Greg Kroah-Hartman committed Jul 21, 2008
1 parent fe9b903 commit bef4665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/host/uhci-hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit bef4665

Please sign in to comment.