summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pm8001/pm8001_init.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2021-10-13 01:35:47 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2021-10-17 03:45:58 +0200
commitc03b72b86c7777127dc3aadb83c807619fcf510d (patch)
tree9cd59db583edff2a516b91e362217cf829beffaf /drivers/scsi/pm8001/pm8001_init.c
parentscsi: sym53c500_cs: Switch to attribute groups (diff)
downloadlinux-c03b72b86c7777127dc3aadb83c807619fcf510d.tar.xz
linux-c03b72b86c7777127dc3aadb83c807619fcf510d.zip
scsi: pm8001: Switch to attribute groups
struct device supports attribute groups directly but does not support struct device_attribute directly. Hence switch to attribute groups. Link: https://lore.kernel.org/r/20211012233558.4066756-36-bvanassche@acm.org Acked-by: Jack Wang <jinpu.wang@ionos.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/pm8001/pm8001_init.c')
-rw-r--r--drivers/scsi/pm8001/pm8001_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c
index 7082fecf7ce8..bed8cc125544 100644
--- a/drivers/scsi/pm8001/pm8001_init.c
+++ b/drivers/scsi/pm8001/pm8001_init.c
@@ -107,7 +107,7 @@ static struct scsi_host_template pm8001_sht = {
#ifdef CONFIG_COMPAT
.compat_ioctl = sas_ioctl,
#endif
- .shost_attrs = pm8001_host_attrs,
+ .shost_groups = pm8001_host_groups,
.track_queue_depth = 1,
};