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

scsi: message: fusion: Declare SCSI host template members const

Make it explicit that the SCSI host templates are not modified.
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230322195515.1267197-8-bvanassche@acm.orgSigned-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 4281af9d
...@@ -105,7 +105,7 @@ static int mptfc_abort(struct scsi_cmnd *SCpnt); ...@@ -105,7 +105,7 @@ static int mptfc_abort(struct scsi_cmnd *SCpnt);
static int mptfc_dev_reset(struct scsi_cmnd *SCpnt); static int mptfc_dev_reset(struct scsi_cmnd *SCpnt);
static int mptfc_bus_reset(struct scsi_cmnd *SCpnt); static int mptfc_bus_reset(struct scsi_cmnd *SCpnt);
static struct scsi_host_template mptfc_driver_template = { static const struct scsi_host_template mptfc_driver_template = {
.module = THIS_MODULE, .module = THIS_MODULE,
.proc_name = "mptfc", .proc_name = "mptfc",
.show_info = mptscsih_show_info, .show_info = mptscsih_show_info,
......
...@@ -1997,7 +1997,7 @@ static enum scsi_timeout_action mptsas_eh_timed_out(struct scsi_cmnd *sc) ...@@ -1997,7 +1997,7 @@ static enum scsi_timeout_action mptsas_eh_timed_out(struct scsi_cmnd *sc)
} }
static struct scsi_host_template mptsas_driver_template = { static const struct scsi_host_template mptsas_driver_template = {
.module = THIS_MODULE, .module = THIS_MODULE,
.proc_name = "mptsas", .proc_name = "mptsas",
.show_info = mptscsih_show_info, .show_info = mptscsih_show_info,
......
...@@ -820,7 +820,7 @@ static void mptspi_slave_destroy(struct scsi_device *sdev) ...@@ -820,7 +820,7 @@ static void mptspi_slave_destroy(struct scsi_device *sdev)
mptscsih_slave_destroy(sdev); mptscsih_slave_destroy(sdev);
} }
static struct scsi_host_template mptspi_driver_template = { static const struct scsi_host_template mptspi_driver_template = {
.module = THIS_MODULE, .module = THIS_MODULE,
.proc_name = "mptspi", .proc_name = "mptspi",
.show_info = mptscsih_show_info, .show_info = mptscsih_show_info,
......
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