[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1472401169-2596-1-git-send-email-weiyj.lk@gmail.com>
Date: Sun, 28 Aug 2016 16:19:29 +0000
From: Wei Yongjun <weiyj.lk@...il.com>
To: "J . German Rivera" <German.Rivera@...escale.com>,
Stuart Yoder <stuart.yoder@....com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Bhumika Goyal <bhumirks@...il.com>,
Paul Gortmaker <paul.gortmaker@...driver.com>,
Itai Katz <itai.katz@....com>,
German Rivera <german.rivera@....com>
Cc: Wei Yongjun <weiyongjun1@...wei.com>, linux-kernel@...r.kernel.org,
devel@...verdev.osuosl.org
Subject: [PATCH -next] staging: fsl-mc: convert to use ATTRIBUTE_GROUPS macro
From: Wei Yongjun <weiyongjun1@...wei.com>
Use ATTRIBUTE_GROUPS macro to reduce the number of lines of code.
Generated by Coccinelle semantic patch.
Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
---
drivers/staging/fsl-mc/bus/mc-bus.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/staging/fsl-mc/bus/mc-bus.c b/drivers/staging/fsl-mc/bus/mc-bus.c
index fe20c5d..cfe3ecb 100644
--- a/drivers/staging/fsl-mc/bus/mc-bus.c
+++ b/drivers/staging/fsl-mc/bus/mc-bus.c
@@ -101,14 +101,8 @@ static struct attribute *fsl_mc_dev_attrs[] = {
NULL,
};
-static const struct attribute_group fsl_mc_dev_group = {
- .attrs = fsl_mc_dev_attrs,
-};
+ATTRIBUTE_GROUPS(fsl_mc_dev);
-static const struct attribute_group *fsl_mc_dev_groups[] = {
- &fsl_mc_dev_group,
- NULL,
-};
struct bus_type fsl_mc_bus_type = {
.name = "fsl-mc",
Powered by blists - more mailing lists