Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Finn Thain <fthain@linux-m68k.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
cd614642 53555fb7

+7 -9
-2
drivers/scsi/NCR5380.h
··· 230 230 struct list_head list; 231 231 }; 232 232 233 - #define NCR5380_CMD_SIZE (sizeof(struct NCR5380_cmd)) 234 - 235 233 #define NCR5380_PIO_CHUNK_SIZE 256 236 234 237 235 /* Time limit (ms) to poll registers when IRQs are disabled, e.g. during PDMA */
+1 -1
drivers/scsi/arm/cumana_1.c
··· 223 223 .sg_tablesize = SG_ALL, 224 224 .cmd_per_lun = 2, 225 225 .proc_name = "CumanaSCSI-1", 226 - .cmd_size = NCR5380_CMD_SIZE, 226 + .cmd_size = sizeof(struct NCR5380_cmd), 227 227 .max_sectors = 128, 228 228 .dma_boundary = PAGE_SIZE - 1, 229 229 };
+1 -1
drivers/scsi/arm/oak.c
··· 113 113 .cmd_per_lun = 2, 114 114 .dma_boundary = PAGE_SIZE - 1, 115 115 .proc_name = "oakscsi", 116 - .cmd_size = NCR5380_CMD_SIZE, 116 + .cmd_size = sizeof(struct NCR5380_cmd), 117 117 .max_sectors = 128, 118 118 }; 119 119
+1 -1
drivers/scsi/atari_scsi.c
··· 711 711 .this_id = 7, 712 712 .cmd_per_lun = 2, 713 713 .dma_boundary = PAGE_SIZE - 1, 714 - .cmd_size = NCR5380_CMD_SIZE, 714 + .cmd_size = sizeof(struct NCR5380_cmd), 715 715 }; 716 716 717 717 static int __init atari_scsi_probe(struct platform_device *pdev)
+1 -1
drivers/scsi/dmx3191d.c
··· 52 52 .sg_tablesize = SG_ALL, 53 53 .cmd_per_lun = 2, 54 54 .dma_boundary = PAGE_SIZE - 1, 55 - .cmd_size = NCR5380_CMD_SIZE, 55 + .cmd_size = sizeof(struct NCR5380_cmd), 56 56 }; 57 57 58 58 static int dmx3191d_probe_one(struct pci_dev *pdev,
+1 -1
drivers/scsi/g_NCR5380.c
··· 702 702 .sg_tablesize = SG_ALL, 703 703 .cmd_per_lun = 2, 704 704 .dma_boundary = PAGE_SIZE - 1, 705 - .cmd_size = NCR5380_CMD_SIZE, 705 + .cmd_size = sizeof(struct NCR5380_cmd), 706 706 .max_sectors = 128, 707 707 }; 708 708
+1 -1
drivers/scsi/mac_scsi.c
··· 434 434 .sg_tablesize = 1, 435 435 .cmd_per_lun = 2, 436 436 .dma_boundary = PAGE_SIZE - 1, 437 - .cmd_size = NCR5380_CMD_SIZE, 437 + .cmd_size = sizeof(struct NCR5380_cmd), 438 438 .max_sectors = 128, 439 439 }; 440 440
+1 -1
drivers/scsi/sun3_scsi.c
··· 505 505 .sg_tablesize = 1, 506 506 .cmd_per_lun = 2, 507 507 .dma_boundary = PAGE_SIZE - 1, 508 - .cmd_size = NCR5380_CMD_SIZE, 508 + .cmd_size = sizeof(struct NCR5380_cmd), 509 509 }; 510 510 511 511 static int __init sun3_scsi_probe(struct platform_device *pdev)