aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2012-02-25 12:28:10 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-28 14:07:42 -0500
commitb8db6d6402ddca1c78a27407fbd10a6ccb23ab14 (patch)
tree4e9dfe7724cb2332f083f4dd0a3a4b5576c0e28a /include/linux/usb
parent7ac4704c099125214a4f0a4bd54ce94d15be2ffb (diff)
usb/storage: redefine US_BULK_FLAG_IN and use it
US_BULK_FLAG_IN is defined as 1 and not used. The USB storage spec says that bit 7 of flags within CBW defines the data direction. 1 is DATA-IN (read from device) and 0 is the DATA-OUT. Bit 6 is obselete and bits 0-5 are reserved. This patch redefines the unsued define US_BULK_FLAG_IN from 1 to 1 << 7 aka 0x80 and replaces the obvious users. In a following patch the storage gadget will use it as well. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/storage.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb/storage.h b/include/linux/usb/storage.h
index 87a94bf34d47..4de58b15fad6 100644
--- a/include/linux/usb/storage.h
+++ b/include/linux/usb/storage.h
@@ -62,7 +62,7 @@ struct bulk_cb_wrap {
62 62
63#define US_BULK_CB_WRAP_LEN 31 63#define US_BULK_CB_WRAP_LEN 31
64#define US_BULK_CB_SIGN 0x43425355 /*spells out USBC */ 64#define US_BULK_CB_SIGN 0x43425355 /*spells out USBC */
65#define US_BULK_FLAG_IN 1 65#define US_BULK_FLAG_IN (1 << 7)
66#define US_BULK_FLAG_OUT 0 66#define US_BULK_FLAG_OUT 0
67 67
68/* command status wrapper */ 68/* command status wrapper */