Skip to contentSkip to conversation

staging: fsl-mc: convert to use ATTRIBUTE_GROUPS macro

PATCH New Wei Yongjun 1 participant 1 message Aug 28, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: fsl-mc: convert to use ATTRIBUTE_GROUPS macro

From: Wei Yongjun <[email protected]>

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

Generated by Coccinelle semantic patch.

---
 drivers/staging/fsl-mc/bus/mc-bus.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/staging/fsl-mc/bus/mc-bus.c +1 -7
index fe20c5d..cfe3ecb 100644
@@ -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",