mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] staging: fsl-mc: convert to use ATTRIBUTE_GROUPS macro
@ 2016-08-28 16:19 Wei Yongjun
  0 siblings, 0 replies; only message in thread
From: Wei Yongjun @ 2016-08-28 16:19 UTC (permalink / raw)
  To: J . German Rivera, Stuart Yoder, Greg Kroah-Hartman,
	Bhumika Goyal, Paul Gortmaker, Itai Katz, German Rivera
  Cc: Wei Yongjun, linux-kernel, devel

From: Wei Yongjun <weiyongjun1@huawei.com>

Use ATTRIBUTE_GROUPS macro to reduce the number of lines of code.

Generated by Coccinelle semantic patch.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.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",

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-28 16:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-28 16:19 [PATCH -next] staging: fsl-mc: convert to use ATTRIBUTE_GROUPS macro Wei Yongjun

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

all inboxes | Powered by JetHome®