提交 d1e58212 编写于 作者: A Axel Lin 提交者: Chris Ball

mmc: Convert to use ATTRIBUTE_GROUPS

Use new ATTRIBUTE_GROUPS macro to declare attribute groups.
Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: NChris Ball <chris@printf.net>
上级 297d4056
...@@ -694,18 +694,10 @@ static struct attribute *mmc_std_attrs[] = { ...@@ -694,18 +694,10 @@ static struct attribute *mmc_std_attrs[] = {
&dev_attr_rel_sectors.attr, &dev_attr_rel_sectors.attr,
NULL, NULL,
}; };
ATTRIBUTE_GROUPS(mmc_std);
static struct attribute_group mmc_std_attr_group = {
.attrs = mmc_std_attrs,
};
static const struct attribute_group *mmc_attr_groups[] = {
&mmc_std_attr_group,
NULL,
};
static struct device_type mmc_type = { static struct device_type mmc_type = {
.groups = mmc_attr_groups, .groups = mmc_std_groups,
}; };
/* /*
......
...@@ -707,18 +707,10 @@ static struct attribute *sd_std_attrs[] = { ...@@ -707,18 +707,10 @@ static struct attribute *sd_std_attrs[] = {
&dev_attr_serial.attr, &dev_attr_serial.attr,
NULL, NULL,
}; };
ATTRIBUTE_GROUPS(sd_std);
static struct attribute_group sd_std_attr_group = {
.attrs = sd_std_attrs,
};
static const struct attribute_group *sd_attr_groups[] = {
&sd_std_attr_group,
NULL,
};
struct device_type sd_type = { struct device_type sd_type = {
.groups = sd_attr_groups, .groups = sd_std_groups,
}; };
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册