]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: scsi: Rename struct SCSI_cmd_block to struct scsi_cmd
authorSimon Glass <sjg@chromium.org>
Thu, 15 Jun 2017 03:28:29 +0000 (21:28 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Jul 2017 16:08:19 +0000 (10:08 -0600)
This name should be lower case. Also the _block suffix is superfluous.
Rename it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/usb/emul/sandbox_flash.c
include/scsi.h

index 73fa82b8e61380e376a3093d8e3a4fc950ad0b0f..98d20c0bc1500c3c120c8105b19f62d723538c46 100644 (file)
@@ -244,7 +244,7 @@ static int handle_ufi_command(struct sandbox_flash_plat *plat,
                              struct sandbox_flash_priv *priv, const void *buff,
                              int len)
 {
-       const struct SCSI_cmd_block *req = buff;
+       const struct scsi_cmd *req = buff;
 
        switch (*req->cmd) {
        case SCSI_INQUIRY: {
index f94b2ef51444f5c06941efc460a0ee09d17009a6..182665dd0cd12f86c5ef8f94949b0248b4a89e3a 100644 (file)
@@ -7,7 +7,7 @@
  #ifndef _SCSI_H
  #define _SCSI_H
 
-typedef struct SCSI_cmd_block{
+typedef struct scsi_cmd{
        unsigned char           cmd[16];                                        /* command                                 */
        /* for request sense */
        unsigned char           sense_buf[64]