summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/g_NCR5380.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2023-03-22 20:54:34 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2023-03-25 00:19:22 +0100
commitbd5e469a7f698ea5c4de3c4de17c05070db51d74 (patch)
tree1dbc7acac149a051e447234bd87151376d5f9989 /drivers/scsi/g_NCR5380.c
parentscsi: fdomain: Declare SCSI host template const (diff)
downloadlinux-bd5e469a7f698ea5c4de3c4de17c05070db51d74.tar.xz
linux-bd5e469a7f698ea5c4de3c4de17c05070db51d74.zip
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>
Diffstat (limited to 'drivers/scsi/g_NCR5380.c')
-rw-r--r--drivers/scsi/g_NCR5380.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/g_NCR5380.c b/drivers/scsi/g_NCR5380.c
index 0c768e7d06b9..f6305e3e60f4 100644
--- a/drivers/scsi/g_NCR5380.c
+++ b/drivers/scsi/g_NCR5380.c
@@ -219,7 +219,7 @@ static int hp_c2502_irqs[] = {
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)
{
bool is_pmio = base <= 0xffff;
@@ -689,7 +689,7 @@ static int generic_NCR5380_dma_residual(struct NCR5380_hostdata *hostdata)
#include "NCR5380.c"
-static struct scsi_host_template driver_template = {
+static const struct scsi_host_template driver_template = {
.module = THIS_MODULE,
.proc_name = DRV_MODULE_NAME,
.name = "Generic NCR5380/NCR53C400 SCSI",