[U-Boot] [PATCH 10/44] dm: scsi: Fix up code style

Stephen Warren swarren at wwwdotorg.org
Tue Apr 12 22:05:31 CEST 2016


On 04/09/2016 08:45 PM, Simon Glass wrote:
> Update the code style of this file so that it passes checkpatch.pl.

> diff --git a/cmd/scsi.c b/cmd/scsi.c

> @@ -50,82 +50,53 @@ static int scsi_curr_dev; /* current device */
>
>   static struct blk_desc scsi_dev_desc[CONFIG_SYS_SCSI_MAX_DEVICE];
>
> -#if 0
> -/********************************************************************************
> - *  forward declerations of some Setup Routines
> - */
> -void scsi_setup_test_unit_ready(ccb * pccb);
> -void scsi_setup_read6(ccb * pccb, lbaint_t start, unsigned short blocks);
> -void scsi_setup_read_ext(ccb * pccb, lbaint_t start, unsigned short blocks);
> -void scsi_setup_read16(ccb * pccb, lbaint_t start, unsigned long blocks);
> -
> -static void scsi_setup_write_ext(ccb *pccb, lbaint_t start,
> -				unsigned short blocks);
> -void scsi_setup_inquiry(ccb * pccb);
> -void scsi_ident_cpy (unsigned char *dest, unsigned char *src, unsigned int len);
> -
> -
> -static int scsi_read_capacity(ccb *pccb, lbaint_t *capacity,
> -			      unsigned long *blksz);
> -static ulong scsi_read(struct blk_desc *block_dev, lbaint_t blknr,
> -		       lbaint_t blkcnt, void *buffer);
> -static ulong scsi_write(struct blk_desc *block_dev, lbaint_t blknr,
> -			lbaint_t blkcnt, const void *buffer);
> -#endif
> -

Ah, that answers my previous question. I guess that chunk just got 
squashed into one commit too late.


More information about the U-Boot mailing list