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

scsi: megaraid: 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-52-bvanassche@acm.orgSigned-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 5e328664
...@@ -4100,7 +4100,7 @@ mega_internal_command(adapter_t *adapter, megacmd_t *mc, mega_passthru *pthru) ...@@ -4100,7 +4100,7 @@ mega_internal_command(adapter_t *adapter, megacmd_t *mc, mega_passthru *pthru)
return rval; return rval;
} }
static struct scsi_host_template megaraid_template = { static const struct scsi_host_template megaraid_template = {
.module = THIS_MODULE, .module = THIS_MODULE,
.name = "MegaRAID", .name = "MegaRAID",
.proc_name = "megaraid_legacy", .proc_name = "megaraid_legacy",
......
...@@ -325,7 +325,7 @@ ATTRIBUTE_GROUPS(megaraid_sdev); ...@@ -325,7 +325,7 @@ ATTRIBUTE_GROUPS(megaraid_sdev);
/* /*
* Scsi host template for megaraid unified driver * Scsi host template for megaraid unified driver
*/ */
static struct scsi_host_template megaraid_template_g = { static const struct scsi_host_template megaraid_template_g = {
.module = THIS_MODULE, .module = THIS_MODULE,
.name = "LSI Logic MegaRAID driver", .name = "LSI Logic MegaRAID driver",
.proc_name = "megaraid", .proc_name = "megaraid",
......
...@@ -3505,7 +3505,7 @@ ATTRIBUTE_GROUPS(megaraid_host); ...@@ -3505,7 +3505,7 @@ ATTRIBUTE_GROUPS(megaraid_host);
/* /*
* Scsi host template for megaraid_sas driver * Scsi host template for megaraid_sas driver
*/ */
static struct scsi_host_template megasas_template = { static const struct scsi_host_template megasas_template = {
.module = THIS_MODULE, .module = THIS_MODULE,
.name = "Avago SAS based MegaRAID driver", .name = "Avago SAS based MegaRAID driver",
......
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