]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
usb: storage: fix wrong comments for struct bulk_cb_wrap
authorDingyan Li <18500469033@163.com>
Sun, 20 Oct 2024 07:47:21 +0000 (15:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2024 03:33:29 +0000 (04:33 +0100)
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>
include/linux/usb/storage.h

index 2827ce72e5025ca25c419d5ecf0507dcb6b1729b..8539956bc2be1c81ffa0b5919017b1d1521a5e56 100644 (file)
@@ -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 */