public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] mtd: Convert to use ATTRIBUTE_GROUPS
@ 2013-12-02  2:12 Axel Lin
  2013-12-05  2:10 ` Brian Norris
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2013-12-02  2:12 UTC (permalink / raw)
  To: David Woodhouse, Brian Norris; +Cc: linux-mtd

Use new ATTRIBUTE_GROUPS macro to declare attribute groups.

Signed-off-by: Axel Lin <axel.lin@ingics.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",
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mtd: Convert to use ATTRIBUTE_GROUPS
  2013-12-02  2:12 [PATCH] mtd: Convert to use ATTRIBUTE_GROUPS Axel Lin
@ 2013-12-05  2:10 ` Brian Norris
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Norris @ 2013-12-05  2:10 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-mtd, David Woodhouse

On Mon, Dec 02, 2013 at 10:12:25AM +0800, Axel Lin wrote:
> Use new ATTRIBUTE_GROUPS macro to declare attribute groups.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Pushed to l2-mtd.git. Thanks!

Brian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-05  2:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-02  2:12 [PATCH] mtd: Convert to use ATTRIBUTE_GROUPS Axel Lin
2013-12-05  2:10 ` Brian Norris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox