projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0228348
)
usb_storage: constify us_direction lookup table
author
Mike Frysinger
<vapier@gentoo.org>
Wed, 20 Oct 2010 11:16:04 +0000
(07:16 -0400)
committer
Remy Bohmer
<linux@bohmer.net>
Fri, 22 Oct 2010 19:41:46 +0000
(21:41 +0200)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
common/usb_storage.c
patch
|
blob
|
history
diff --git
a/common/usb_storage.c
b/common/usb_storage.c
index 613c4f0f1f7e79a653ad6267a8341e7c30207f80..1e6cd6af27491467870ad76cc61d7c631a8a277f 100644
(file)
--- a/
common/usb_storage.c
+++ b/
common/usb_storage.c
@@
-70,7
+70,7
@@
/* direction table -- this indicates the direction of the data
* transfer for each command code -- a 1 indicates input
*/
-unsigned char us_direction[256/8] = {
+
static const
unsigned char us_direction[256/8] = {
0x28, 0x81, 0x14, 0x14, 0x20, 0x01, 0x90, 0x77,
0x0C, 0x20, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01,