[U-Boot] [PATCH 21/29] dm: scsi: Add a device pointer to scan_exec(), scsi_bus_reset()

Bin Meng bmeng.cn at gmail.com
Tue Jun 13 03:14:19 UTC 2017


On Tue, Jun 6, 2017 at 3:15 AM, Simon Glass <sjg at chromium.org> wrote:
> 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 at chromium.org>
> ---
>
>  arch/arm/mach-omap2/sata.c  |  4 +++-
>  cmd/scsi.c                  |  2 +-
>  drivers/ata/ahci.c          | 13 ++++++++++---
>  drivers/scsi/sandbox_scsi.c |  5 +++--
>  drivers/scsi/scsi.c         | 31 +++++++++++++++++++------------
>  include/scsi.h              |  4 ++--
>  6 files changed, 38 insertions(+), 21 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list