Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.org
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
aec4b25c 087c3ace

+6 -4
+6 -4
drivers/scsi/ncr53c8xx.c
··· 8039 8039 .show = show_ncr53c8xx_revision, 8040 8040 }; 8041 8041 8042 - static struct device_attribute *ncr53c8xx_host_attrs[] = { 8043 - &ncr53c8xx_revision_attr, 8042 + static struct attribute *ncr53c8xx_host_attrs[] = { 8043 + &ncr53c8xx_revision_attr.attr, 8044 8044 NULL 8045 8045 }; 8046 + 8047 + ATTRIBUTE_GROUPS(ncr53c8xx_host); 8046 8048 8047 8049 /*========================================================== 8048 8050 ** ··· 8087 8085 8088 8086 if (!tpnt->name) 8089 8087 tpnt->name = SCSI_NCR_DRIVER_NAME; 8090 - if (!tpnt->shost_attrs) 8091 - tpnt->shost_attrs = ncr53c8xx_host_attrs; 8088 + if (!tpnt->shost_groups) 8089 + tpnt->shost_groups = ncr53c8xx_host_groups; 8092 8090 8093 8091 tpnt->queuecommand = ncr53c8xx_queue_command; 8094 8092 tpnt->slave_configure = ncr53c8xx_slave_configure;