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

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

authored by

Bart Van Assche and committed by
Martin K. Petersen
11e58cea 8afc6e14

+2 -2
+2 -2
drivers/scsi/aha152x.c
··· 400 400 401 401 #endif /* !AHA152X_PCMCIA */ 402 402 403 - static struct scsi_host_template aha152x_driver_template; 403 + static const struct scsi_host_template aha152x_driver_template; 404 404 405 405 /* 406 406 * internal states of the host ··· 2946 2946 return 0; 2947 2947 } 2948 2948 2949 - static struct scsi_host_template aha152x_driver_template = { 2949 + static const struct scsi_host_template aha152x_driver_template = { 2950 2950 .module = THIS_MODULE, 2951 2951 .name = AHA152X_REVID, 2952 2952 .proc_name = "aha152x",