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

scsi: aha1542: 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-20-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
77168bd7 11e58cea

+3 -2
+3 -2
drivers/scsi/aha1542.c
··· 737 737 } 738 738 739 739 /* return non-zero on detection */ 740 - static struct Scsi_Host *aha1542_hw_init(struct scsi_host_template *tpnt, struct device *pdev, int indx) 740 + static struct Scsi_Host *aha1542_hw_init(const struct scsi_host_template *tpnt, 741 + struct device *pdev, int indx) 741 742 { 742 743 unsigned int base_io = io[indx]; 743 744 struct Scsi_Host *sh; ··· 1032 1031 return 0; 1033 1032 } 1034 1033 1035 - static struct scsi_host_template driver_template = { 1034 + static const struct scsi_host_template driver_template = { 1036 1035 .module = THIS_MODULE, 1037 1036 .proc_name = "aha1542", 1038 1037 .name = "Adaptec 1542",