mtd: convert to use ATTRIBUTE_GROUPS

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Jan 28 00:59:03 EST 2014


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=54c738f694ab67a007a43482d1dd7cf956fbb6c3
Commit:     54c738f694ab67a007a43482d1dd7cf956fbb6c3
Parent:     574926c5bc3d787bb0b935b99d8825b3199ba76b
Author:     Axel Lin <axel.lin at ingics.com>
AuthorDate: Mon Dec 2 10:12:25 2013 +0800
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Fri Jan 3 11:22:21 2014 -0800

    mtd: convert to use ATTRIBUTE_GROUPS
    
    Use new ATTRIBUTE_GROUPS macro to declare attribute groups.
    
    Signed-off-by: Axel Lin <axel.lin at ingics.com>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/mtdcore.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index 92311a5..34c0b16 100644
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -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",



More information about the linux-mtd-cvs mailing list