diff options
author | Simon Glass <sjg@chromium.org> | 2017-06-14 21:28:40 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-07-11 10:08:19 -0600 |
commit | 4682c8a19b4eb69f7ad51df3f543375583ce878a (patch) | |
tree | 09ea9daa3d0f8737086c5659fb4f1428e20d235a /include/scsi.h | |
parent | 322f73f473d921dbdd0fe11bd62db6a00e5b133c (diff) | |
download | u-boot-4682c8a19b4eb69f7ad51df3f543375583ce878a.tar.gz |
dm: scsi: Add a device pointer to scan_exec(), scsi_bus_reset()
With driver model these functions need a device pointer. Add one even
when CONFIG_DM_SCSI is not defined. This avoids having ugly conditional
function prototypes, When CONFIG_DM_SCSI is not defined we can just ignore
the pointer.
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/scsi.h b/include/scsi.h index d2fa8a5195..af07dbe6db 100644 --- a/include/scsi.h +++ b/include/scsi.h @@ -196,8 +196,8 @@ void scsi_low_level_init(int busdevfunc); void scsi_init(void); #endif -int scsi_exec(struct scsi_cmd *pccb); -void scsi_bus_reset(void); +int scsi_exec(struct udevice *dev, struct scsi_cmd *pccb); +int scsi_bus_reset(struct udevice *dev); /*************************************************************************** * functions residing inside cmd_scsi.c |