aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-03-08 02:05:27 -0500
committerChris Ball <chris@printf.net>2014-04-22 07:06:38 -0400
commitd1e58212caa4fdd95dfb003ba6e90aa0c9c1ac03 (patch)
tree24dd8d4f2564adcd8f2fb1c118afda35b1ad9ef2 /drivers/mmc/core
parent297d40560bc8f474adbb43178e3118321fa702ea (diff)
mmc: Convert to use ATTRIBUTE_GROUPS
Use new ATTRIBUTE_GROUPS macro to declare attribute groups. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'drivers/mmc/core')
-rw-r--r--drivers/mmc/core/mmc.c12
-rw-r--r--drivers/mmc/core/sd.c12
2 files changed, 4 insertions, 20 deletions
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index e22d8515ff97..fbcf93d81858 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -694,18 +694,10 @@ static struct attribute *mmc_std_attrs[] = {
694 &dev_attr_rel_sectors.attr, 694 &dev_attr_rel_sectors.attr,
695 NULL, 695 NULL,
696}; 696};
697 697ATTRIBUTE_GROUPS(mmc_std);
698static struct attribute_group mmc_std_attr_group = {
699 .attrs = mmc_std_attrs,
700};
701
702static const struct attribute_group *mmc_attr_groups[] = {
703 &mmc_std_attr_group,
704 NULL,
705};
706 698
707static struct device_type mmc_type = { 699static struct device_type mmc_type = {
708 .groups = mmc_attr_groups, 700 .groups = mmc_std_groups,
709}; 701};
710 702
711/* 703/*
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
index 2dd359d2242f..aef515755e5b 100644
--- a/drivers/mmc/core/sd.c
+++ b/drivers/mmc/core/sd.c
@@ -707,18 +707,10 @@ static struct attribute *sd_std_attrs[] = {
707 &dev_attr_serial.attr, 707 &dev_attr_serial.attr,
708 NULL, 708 NULL,
709}; 709};
710 710ATTRIBUTE_GROUPS(sd_std);
711static struct attribute_group sd_std_attr_group = {
712 .attrs = sd_std_attrs,
713};
714
715static const struct attribute_group *sd_attr_groups[] = {
716 &sd_std_attr_group,
717 NULL,
718};
719 711
720struct device_type sd_type = { 712struct device_type sd_type = {
721 .groups = sd_attr_groups, 713 .groups = sd_std_groups,
722}; 714};
723 715
724/* 716/*