Commit e71eebf7 authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen
Browse files

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: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent aec4b25c
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -650,11 +650,13 @@ static struct device_attribute SYM53C500_pio_attr = {
	.store = SYM53C500_store_pio,
};

static struct device_attribute *SYM53C500_shost_attrs[] = {
	&SYM53C500_pio_attr,
static struct attribute *SYM53C500_shost_attrs[] = {
	&SYM53C500_pio_attr.attr,
	NULL,
};

ATTRIBUTE_GROUPS(SYM53C500_shost);

/*
*  scsi_host_template initializer
*/
@@ -669,7 +671,7 @@ static struct scsi_host_template sym53c500_driver_template = {
     .can_queue			= 1,
     .this_id			= 7,
     .sg_tablesize		= 32,
     .shost_attrs		= SYM53C500_shost_attrs
     .shost_groups		= SYM53C500_shost_groups
};

static int SYM53C500_config_check(struct pcmcia_device *p_dev, void *priv_data)