Commit aec4b25c authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

scsi: ncr53c8xx: 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-34-bvanassche@acm.orgSigned-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 087c3ace
...@@ -8039,11 +8039,13 @@ static struct device_attribute ncr53c8xx_revision_attr = { ...@@ -8039,11 +8039,13 @@ static struct device_attribute ncr53c8xx_revision_attr = {
.show = show_ncr53c8xx_revision, .show = show_ncr53c8xx_revision,
}; };
static struct device_attribute *ncr53c8xx_host_attrs[] = { static struct attribute *ncr53c8xx_host_attrs[] = {
&ncr53c8xx_revision_attr, &ncr53c8xx_revision_attr.attr,
NULL NULL
}; };
ATTRIBUTE_GROUPS(ncr53c8xx_host);
/*========================================================== /*==========================================================
** **
** Boot command line. ** Boot command line.
...@@ -8085,8 +8087,8 @@ struct Scsi_Host * __init ncr_attach(struct scsi_host_template *tpnt, ...@@ -8085,8 +8087,8 @@ struct Scsi_Host * __init ncr_attach(struct scsi_host_template *tpnt,
if (!tpnt->name) if (!tpnt->name)
tpnt->name = SCSI_NCR_DRIVER_NAME; tpnt->name = SCSI_NCR_DRIVER_NAME;
if (!tpnt->shost_attrs) if (!tpnt->shost_groups)
tpnt->shost_attrs = ncr53c8xx_host_attrs; tpnt->shost_groups = ncr53c8xx_host_groups;
tpnt->queuecommand = ncr53c8xx_queue_command; tpnt->queuecommand = ncr53c8xx_queue_command;
tpnt->slave_configure = ncr53c8xx_slave_configure; tpnt->slave_configure = ncr53c8xx_slave_configure;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment