diff options
author | Bart Van Assche <bvanassche@acm.org> | 2021-10-13 01:35:53 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-10-17 03:45:59 +0200 |
commit | a8b476fc86d9a6580410ef4690bbb152cc027a34 (patch) | |
tree | b92a577c48bea73ad257739d7107717aa84a5bf0 /drivers/scsi/qla4xxx/ql4_glbl.h | |
parent | scsi: qla2xxx: Switch to attribute groups (diff) | |
download | linux-a8b476fc86d9a6580410ef4690bbb152cc027a34.tar.xz linux-a8b476fc86d9a6580410ef4690bbb152cc027a34.zip |
scsi: qla4xxx: 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-42-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/qla4xxx/ql4_glbl.h')
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_glbl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_glbl.h b/drivers/scsi/qla4xxx/ql4_glbl.h index ea60057b2e20..c0873381508d 100644 --- a/drivers/scsi/qla4xxx/ql4_glbl.h +++ b/drivers/scsi/qla4xxx/ql4_glbl.h @@ -286,5 +286,6 @@ extern int ql4xenablemsix; extern int ql4xmdcapmask; extern int ql4xenablemd; -extern struct device_attribute *qla4xxx_host_attrs[]; +extern const struct attribute_group *qla4xxx_host_groups[]; + #endif /* _QLA4x_GBL_H */ |