summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/am53c974.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2023-03-22 20:54:29 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2023-03-25 00:19:22 +0100
commit3b465a149146032be5c3e42735e7eaf45517aa97 (patch)
tree9a300484889bdbe655ebbe2f32ada40daea37f0c /drivers/scsi/am53c974.c
parentscsi: esas2r: Declare SCSI host template const (diff)
downloadlinux-3b465a149146032be5c3e42735e7eaf45517aa97.tar.xz
linux-3b465a149146032be5c3e42735e7eaf45517aa97.zip
scsi: esp_scsi: 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-35-bvanassche@acm.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/am53c974.c')
-rw-r--r--drivers/scsi/am53c974.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/am53c974.c b/drivers/scsi/am53c974.c
index b69edb473295..fbb29dbb1e50 100644
--- a/drivers/scsi/am53c974.c
+++ b/drivers/scsi/am53c974.c
@@ -371,7 +371,7 @@ static void dc390_check_eeprom(struct esp *esp)
static int pci_esp_probe_one(struct pci_dev *pdev,
const struct pci_device_id *id)
{
- struct scsi_host_template *hostt = &scsi_esp_template;
+ const struct scsi_host_template *hostt = &scsi_esp_template;
int err = -ENODEV;
struct Scsi_Host *shost;
struct esp *esp;