Commit bd5e469a authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

scsi: NCR5380: Declare SCSI host template const

Make it explicit that the SCSI host template is not modified.
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230322195515.1267197-40-bvanassche@acm.orgSigned-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 8e6a87aa
...@@ -219,7 +219,7 @@ static int hp_c2502_irqs[] = { ...@@ -219,7 +219,7 @@ static int hp_c2502_irqs[] = {
9, 5, 7, 3, 4, -1 9, 5, 7, 3, 4, -1
}; };
static int generic_NCR5380_init_one(struct scsi_host_template *tpnt, static int generic_NCR5380_init_one(const struct scsi_host_template *tpnt,
struct device *pdev, int base, int irq, int board) struct device *pdev, int base, int irq, int board)
{ {
bool is_pmio = base <= 0xffff; bool is_pmio = base <= 0xffff;
...@@ -689,7 +689,7 @@ static int generic_NCR5380_dma_residual(struct NCR5380_hostdata *hostdata) ...@@ -689,7 +689,7 @@ static int generic_NCR5380_dma_residual(struct NCR5380_hostdata *hostdata)
#include "NCR5380.c" #include "NCR5380.c"
static struct scsi_host_template driver_template = { static const struct scsi_host_template driver_template = {
.module = THIS_MODULE, .module = THIS_MODULE,
.proc_name = DRV_MODULE_NAME, .proc_name = DRV_MODULE_NAME,
.name = "Generic NCR5380/NCR53C400 SCSI", .name = "Generic NCR5380/NCR53C400 SCSI",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment