diff options
author | Simon Glass <sjg@chromium.org> | 2017-06-14 21:28:30 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-07-11 10:08:19 -0600 |
commit | b9560ad649b8c523bf303cf9ba981e498988c5d9 (patch) | |
tree | e7a69f35e2bcc5175427d827aeaf4d26a7be544a /include/scsi.h | |
parent | aae5ec34032610f2144542fd1b30b6a5cc559d79 (diff) | |
download | u-boot-b9560ad649b8c523bf303cf9ba981e498988c5d9.tar.gz u-boot-b9560ad649b8c523bf303cf9ba981e498988c5d9.tar.bz2 u-boot-b9560ad649b8c523bf303cf9ba981e498988c5d9.zip |
dm: scsi: Drop the ccb typedef
We should not be using typedefs in U-Boot and 'ccb' is a pretty short
name. It is also used with variables. Drop the typedef and use 'struct'
instead.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/scsi.h')
-rw-r--r-- | include/scsi.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/scsi.h b/include/scsi.h index 182665dd0c..bc5be97465 100644 --- a/include/scsi.h +++ b/include/scsi.h @@ -7,7 +7,7 @@ #ifndef _SCSI_H #define _SCSI_H -typedef struct scsi_cmd{ +struct scsi_cmd { unsigned char cmd[16]; /* command */ /* for request sense */ unsigned char sense_buf[64] @@ -27,7 +27,7 @@ typedef struct scsi_cmd{ unsigned long trans_bytes; /* tranfered bytes */ unsigned int priv; -}ccb; +}; /*----------------------------------------------------------- ** @@ -178,7 +178,7 @@ void scsi_low_level_init(int busdevfunc); void scsi_init(void); #endif -int scsi_exec(ccb *pccb); +int scsi_exec(struct scsi_cmd *pccb); void scsi_bus_reset(void); /*************************************************************************** |