aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-09-21 16:21:34 +0200
committerSimon Glass <sjg@chromium.org>2022-09-25 08:30:05 -0600
commit8bae79744b39ee7725729673202477300b2f79bc (patch)
treee6f8d4c860d8306def30e7411c5d73dc5b61fc24
parenta966fa98b55bc79ce29e09158bf77b772bc3bc33 (diff)
downloadu-boot-8bae79744b39ee7725729673202477300b2f79bc.zip
u-boot-8bae79744b39ee7725729673202477300b2f79bc.tar.gz
u-boot-8bae79744b39ee7725729673202477300b2f79bc.tar.bz2
sandbox: usb: Rename transfer_len in protocol struct
This has the same name as a field in our local private struct, which is confusing. Change the name to xfer_len instead. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--drivers/usb/emul/sandbox_flash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/emul/sandbox_flash.c b/drivers/usb/emul/sandbox_flash.c
index 01b2b41..7de7521 100644
--- a/drivers/usb/emul/sandbox_flash.c
+++ b/drivers/usb/emul/sandbox_flash.c
@@ -43,7 +43,7 @@ enum {
* @error: true if there is an error condition
* @alloc_len: Allocation length from the last incoming command
* @transfer_len: Transfer length from CBW header
- * @read_len: Number of blocks of data left in the current read command
+ * @read_len: Number of bytes of data left in the current read command
* @tag: Tag value from last command
* @fd: File descriptor of backing file
* @file_size: Size of file in bytes
@@ -92,7 +92,7 @@ struct __packed scsi_read10_req {
u8 lun_flags;
u32 lba;
u8 spare;
- u16 transfer_len;
+ u16 xfer_len;
u8 spare2[3];
};
@@ -282,7 +282,7 @@ static int handle_ufi_command(struct sandbox_flash_plat *plat,
struct scsi_read10_req *req = (void *)buff;
handle_read(priv, be32_to_cpu(req->lba),
- be16_to_cpu(req->transfer_len));
+ be16_to_cpu(req->xfer_len));
break;
}
default: