summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aha152x.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2023-03-22 12:54:13 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2023-03-24 19:19:20 -0400
commit11e58ceacfabda48fcdc0901dbef41c21c52a031 (patch)
tree56acf6f740915e97390dd2db5ed5e0a74cc98c89 /drivers/scsi/aha152x.c
parent8afc6e14a69bd192250f2489d793b8b3d1d41297 (diff)
downloadlinux-stable-11e58ceacfabda48fcdc0901dbef41c21c52a031.tar.gz
linux-stable-11e58ceacfabda48fcdc0901dbef41c21c52a031.tar.bz2
linux-stable-11e58ceacfabda48fcdc0901dbef41c21c52a031.zip
scsi: aha152x: 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-19-bvanassche@acm.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/aha152x.c')
-rw-r--r--drivers/scsi/aha152x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c
index caeebfb67149..055adb349b0e 100644
--- a/drivers/scsi/aha152x.c
+++ b/drivers/scsi/aha152x.c
@@ -400,7 +400,7 @@ MODULE_DEVICE_TABLE(isapnp, id_table);
#endif /* !AHA152X_PCMCIA */
-static struct scsi_host_template aha152x_driver_template;
+static const struct scsi_host_template aha152x_driver_template;
/*
* internal states of the host
@@ -2946,7 +2946,7 @@ static int aha152x_adjust_queue(struct scsi_device *device)
return 0;
}
-static struct scsi_host_template aha152x_driver_template = {
+static const struct scsi_host_template aha152x_driver_template = {
.module = THIS_MODULE,
.name = AHA152X_REVID,
.proc_name = "aha152x",