Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: powertec: 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-29-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
9db80117 644d8d77

+1 -1
+1 -1
drivers/scsi/arm/powertec.c
··· 279 279 static DEVICE_ATTR(bus_term, S_IRUGO | S_IWUSR, 280 280 powertecscsi_show_term, powertecscsi_store_term); 281 281 282 - static struct scsi_host_template powertecscsi_template = { 282 + static const struct scsi_host_template powertecscsi_template = { 283 283 .module = THIS_MODULE, 284 284 .show_info = powertecscsi_show_info, 285 285 .write_info = powertecscsi_set_proc_info,