diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2023-03-25 01:13:03 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-03-25 01:13:03 +0100 |
commit | 62d15dba0aa4448c15da9c9443018c70fc2527b2 (patch) | |
tree | 09817a55288ad1754dbd201488824382b9df622e /drivers/scsi/arm/powertec.c | |
parent | Merge patch series "arcmsr fixes" (diff) | |
parent | scsi: usb: uas: Declare two host templates and host template pointers const (diff) | |
download | linux-62d15dba0aa4448c15da9c9443018c70fc2527b2.tar.xz linux-62d15dba0aa4448c15da9c9443018c70fc2527b2.zip |
Merge patch series "Constify most SCSI host templates"
Bart Van Assche <bvanassche@acm.org> says:
It helps humans and the compiler if it is made explicit that SCSI host
templates are not modified. Hence this patch series that constifies most
SCSI host templates. Please consider this patch series for the next merge
window.
Link: https://lore.kernel.org/r/20230322195515.1267197-1-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/arm/powertec.c')
-rw-r--r-- | drivers/scsi/arm/powertec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/arm/powertec.c b/drivers/scsi/arm/powertec.c index 7586d2a03812..3b5991427886 100644 --- 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, |