mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-07 03:18:31 +00:00
staging: fsl-mc: convert to use ATTRIBUTE_GROUPS macro
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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
be1edb857e
commit
a71a6d96a4
1 changed files with 1 additions and 7 deletions
|
@ -137,14 +137,8 @@ static struct attribute *fsl_mc_dev_attrs[] = {
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct attribute_group fsl_mc_dev_group = {
|
ATTRIBUTE_GROUPS(fsl_mc_dev);
|
||||||
.attrs = fsl_mc_dev_attrs,
|
|
||||||
};
|
|
||||||
|
|
||||||
static const struct attribute_group *fsl_mc_dev_groups[] = {
|
|
||||||
&fsl_mc_dev_group,
|
|
||||||
NULL,
|
|
||||||
};
|
|
||||||
|
|
||||||
struct bus_type fsl_mc_bus_type = {
|
struct bus_type fsl_mc_bus_type = {
|
||||||
.name = "fsl-mc",
|
.name = "fsl-mc",
|
||||||
|
|
Loading…
Reference in a new issue