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

scsi: NCR5380: Declare SCSI host template const

Make it explicit that the SCSI host template is not modified.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230322195515.1267197-40-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
bd5e469a 8e6a87aa

+2 -2
+2 -2
drivers/scsi/g_NCR5380.c
··· 219 219 9, 5, 7, 3, 4, -1 220 220 }; 221 221 222 - static int generic_NCR5380_init_one(struct scsi_host_template *tpnt, 222 + static int generic_NCR5380_init_one(const struct scsi_host_template *tpnt, 223 223 struct device *pdev, int base, int irq, int board) 224 224 { 225 225 bool is_pmio = base <= 0xffff; ··· 689 689 690 690 #include "NCR5380.c" 691 691 692 - static struct scsi_host_template driver_template = { 692 + static const struct scsi_host_template driver_template = { 693 693 .module = THIS_MODULE, 694 694 .proc_name = DRV_MODULE_NAME, 695 695 .name = "Generic NCR5380/NCR53C400 SCSI",