Skip to contentSkip to conversation

mtd: Convert to use ATTRIBUTE_GROUPS

PATCH Applied Axel Lin 2 participants 2 messages Dec 2, 2013 – Dec 5, 2013 Memory technology devices (MTD)

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 mtd: Convert to use ATTRIBUTE_GROUPS

Use new ATTRIBUTE_GROUPS macro to declare attribute groups.

---
 drivers/mtd/mtdcore.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
drivers/mtd/mtdcore.c +1 -9
index 92311a5..34c0b16 100644
@@ -313,15 +313,7 @@ static struct attribute *mtd_attrs[] = {
 	&dev_attr_bitflip_threshold.attr,
 	NULL,
 };
-
-static struct attribute_group mtd_group = {
-	.attrs		= mtd_attrs,
-};
-
-static const struct attribute_group *mtd_groups[] = {
-	&mtd_group,
-	NULL,
-};
+ATTRIBUTE_GROUPS(mtd);
 
 static struct device_type mtd_devtype = {
 	.name		= "mtd",
Signature · 1 line
1.8.1.2