mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user