summaryrefslogtreecommitdiff
path: root/drivers/scsi/snic/snic.h
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2021-10-13 02:35:55 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-10-17 04:45:59 +0300
commit7500be62910d9273bff783a5d6aa06f6444b7146 (patch)
tree8c6e93c78606fc0804172fcccb1add40bb911c63 /drivers/scsi/snic/snic.h
parent64fc9015fbeb041ed0b2ebf645764c06e0ad7753 (diff)
downloadlinux-7500be62910d9273bff783a5d6aa06f6444b7146.tar.xz
scsi: snic: 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-44-bvanassche@acm.org Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/snic/snic.h')
-rw-r--r--drivers/scsi/snic/snic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/snic/snic.h b/drivers/scsi/snic/snic.h
index f4c666285bba..4ec7e30678e1 100644
--- a/drivers/scsi/snic/snic.h
+++ b/drivers/scsi/snic/snic.h
@@ -374,7 +374,7 @@ int snic_glob_init(void);
void snic_glob_cleanup(void);
extern struct workqueue_struct *snic_event_queue;
-extern struct device_attribute *snic_attrs[];
+extern const struct attribute_group *snic_host_groups[];
int snic_queuecommand(struct Scsi_Host *, struct scsi_cmnd *);
int snic_abort_cmd(struct scsi_cmnd *);