summaryrefslogtreecommitdiff
path: root/include/linux/usb
diff options
context:
space:
mode:
authorDingyan Li <18500469033@163.com>2024-10-20 10:47:21 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-29 06:33:29 +0300
commitf390525d27bc03dc5925293cbd9f22329648b248 (patch)
tree04ba95a5a82079e87bed0181afa9de6f7f480e50 /include/linux/usb
parent1b5188cdc1d4fe41e1cbd6fadf6135c4b973addb (diff)
downloadlinux-f390525d27bc03dc5925293cbd9f22329648b248.tar.xz
usb: storage: fix wrong comments for struct bulk_cb_wrap
In the flags, direction is in bit 7 instead of bit 0 based on the specification. Signed-off-by: Dingyan Li <18500469033@163.com> Link: https://lore.kernel.org/r/20241020074721.26905-1-18500469033@163.com 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 2827ce72e502..8539956bc2be 100644
--- a/include/linux/usb/storage.h
+++ b/include/linux/usb/storage.h
@@ -53,7 +53,7 @@ struct bulk_cb_wrap {
__le32 Signature; /* contains 'USBC' */
__u32 Tag; /* unique per command id */
__le32 DataTransferLength; /* size of data */
- __u8 Flags; /* direction in bit 0 */
+ __u8 Flags; /* direction in bit 7 */
__u8 Lun; /* LUN normally 0 */
__u8 Length; /* length of the CDB */
__u8 CDB[16]; /* max command */