mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
scsi: aha1542: 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-20-bvanassche@acm.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
11e58ceacf
commit
77168bd721
1 changed files with 3 additions and 2 deletions
|
@ -737,7 +737,8 @@ fail:
|
||||||
}
|
}
|
||||||
|
|
||||||
/* return non-zero on detection */
|
/* return non-zero on detection */
|
||||||
static struct Scsi_Host *aha1542_hw_init(struct scsi_host_template *tpnt, struct device *pdev, int indx)
|
static struct Scsi_Host *aha1542_hw_init(const struct scsi_host_template *tpnt,
|
||||||
|
struct device *pdev, int indx)
|
||||||
{
|
{
|
||||||
unsigned int base_io = io[indx];
|
unsigned int base_io = io[indx];
|
||||||
struct Scsi_Host *sh;
|
struct Scsi_Host *sh;
|
||||||
|
@ -1031,7 +1032,7 @@ static int aha1542_exit_cmd_priv(struct Scsi_Host *shost, struct scsi_cmnd *cmd)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct scsi_host_template driver_template = {
|
static const struct scsi_host_template driver_template = {
|
||||||
.module = THIS_MODULE,
|
.module = THIS_MODULE,
|
||||||
.proc_name = "aha1542",
|
.proc_name = "aha1542",
|
||||||
.name = "Adaptec 1542",
|
.name = "Adaptec 1542",
|
||||||
|
|
Loading…
Add table
Reference in a new issue