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

scsi: sym53c500_cs: 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-35-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
e71eebf7 aec4b25c

+5 -3
+5 -3
drivers/scsi/pcmcia/sym53c500_cs.c
··· 650 650 .store = SYM53C500_store_pio, 651 651 }; 652 652 653 - static struct device_attribute *SYM53C500_shost_attrs[] = { 654 - &SYM53C500_pio_attr, 653 + static struct attribute *SYM53C500_shost_attrs[] = { 654 + &SYM53C500_pio_attr.attr, 655 655 NULL, 656 656 }; 657 + 658 + ATTRIBUTE_GROUPS(SYM53C500_shost); 657 659 658 660 /* 659 661 * scsi_host_template initializer ··· 671 669 .can_queue = 1, 672 670 .this_id = 7, 673 671 .sg_tablesize = 32, 674 - .shost_attrs = SYM53C500_shost_attrs 672 + .shost_groups = SYM53C500_shost_groups 675 673 }; 676 674 677 675 static int SYM53C500_config_check(struct pcmcia_device *p_dev, void *priv_data)