projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65e5447
)
scsi: rts5208: Declare SCSI host template const
author
Bart Van Assche
<bvanassche@acm.org>
Wed, 22 Mar 2023 19:55:12 +0000
(12:55 -0700)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Fri, 24 Mar 2023 23:20:00 +0000
(19:20 -0400)
Make it explicit that the SCSI host template is not modified.
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link:
https://lore.kernel.org/r/20230322195515.1267197-78-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/staging/rts5208/rtsx.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rts5208/rtsx.c
b/drivers/staging/rts5208/rtsx.c
index 2284a96abcff03280ae649783e82d69328ec1e07..db2dd0baa8befdbbbe4ffbb4a6911b28509783c5 100644
(file)
--- a/
drivers/staging/rts5208/rtsx.c
+++ b/
drivers/staging/rts5208/rtsx.c
@@
-191,7
+191,7
@@
static int device_reset(struct scsi_cmnd *srb)
* this defines our host template, with which we'll allocate hosts
*/
-static struct scsi_host_template rtsx_host_template = {
+static
const
struct scsi_host_template rtsx_host_template = {
/* basic userland interface stuff */
.name = CR_DRIVER_NAME,
.proc_name = CR_DRIVER_NAME,