projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
644d8d7
)
scsi: powertec: Declare SCSI host template const
author
Bart Van Assche
<bvanassche@acm.org>
Wed, 22 Mar 2023 19:54:23 +0000
(12:54 -0700)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Fri, 24 Mar 2023 23:19:21 +0000
(19:19 -0400)
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-29-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/arm/powertec.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/arm/powertec.c
b/drivers/scsi/arm/powertec.c
index 7586d2a03812ff8f2634beb4fe3b04a9b0010039..3b5991427886c8143b3c49dcd3834bb064d63796 100644
(file)
--- a/
drivers/scsi/arm/powertec.c
+++ b/
drivers/scsi/arm/powertec.c
@@
-279,7
+279,7
@@
powertecscsi_store_term(struct device *dev, struct device_attribute *attr, const
static DEVICE_ATTR(bus_term, S_IRUGO | S_IWUSR,
powertecscsi_show_term, powertecscsi_store_term);
-static struct scsi_host_template powertecscsi_template = {
+static
const
struct scsi_host_template powertecscsi_template = {
.module = THIS_MODULE,
.show_info = powertecscsi_show_info,
.write_info = powertecscsi_set_proc_info,