Commit cd614642 authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen
Browse files

scsi: NCR5380: Remove the NCR5380_CMD_SIZE macro

This makes it easier to find users of the NCR5380_cmd data structure with
'grep'.

Link: https://lore.kernel.org/r/20220218195117.25689-8-bvanassche@acm.org


Cc: Finn Thain <fthain@telegraphics.com.au>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Ondrej Zary <linux@rainbow-software.org>
Cc: Michael Schmitz <schmitzmic@gmail.com>
Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: default avatarHimanshu Madhani <himanshu.madhani@oracle.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Acked-by: default avatarFinn Thain <fthain@linux-m68k.org>
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 53555fb7
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -230,8 +230,6 @@ struct NCR5380_cmd {
	struct list_head list;
};

#define NCR5380_CMD_SIZE		(sizeof(struct NCR5380_cmd))

#define NCR5380_PIO_CHUNK_SIZE		256

/* Time limit (ms) to poll registers when IRQs are disabled, e.g. during PDMA */
+1 −1
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ static struct scsi_host_template cumanascsi_template = {
	.sg_tablesize		= SG_ALL,
	.cmd_per_lun		= 2,
	.proc_name		= "CumanaSCSI-1",
	.cmd_size		= NCR5380_CMD_SIZE,
	.cmd_size		= sizeof(struct NCR5380_cmd),
	.max_sectors		= 128,
	.dma_boundary		= PAGE_SIZE - 1,
};
+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ static struct scsi_host_template oakscsi_template = {
	.cmd_per_lun		= 2,
	.dma_boundary		= PAGE_SIZE - 1,
	.proc_name		= "oakscsi",
	.cmd_size		= NCR5380_CMD_SIZE,
	.cmd_size		= sizeof(struct NCR5380_cmd),
	.max_sectors		= 128,
};

+1 −1
Original line number Diff line number Diff line
@@ -711,7 +711,7 @@ static struct scsi_host_template atari_scsi_template = {
	.this_id		= 7,
	.cmd_per_lun		= 2,
	.dma_boundary		= PAGE_SIZE - 1,
	.cmd_size		= NCR5380_CMD_SIZE,
	.cmd_size		= sizeof(struct NCR5380_cmd),
};

static int __init atari_scsi_probe(struct platform_device *pdev)
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ static struct scsi_host_template dmx3191d_driver_template = {
	.sg_tablesize		= SG_ALL,
	.cmd_per_lun		= 2,
	.dma_boundary		= PAGE_SIZE - 1,
	.cmd_size		= NCR5380_CMD_SIZE,
	.cmd_size		= sizeof(struct NCR5380_cmd),
};

static int dmx3191d_probe_one(struct pci_dev *pdev,
Loading