Commit b848079a authored by Wei Yongjun's avatar Wei Yongjun Committed by Johan Hedberg

Bluetooth: Convert to use ATTRIBUTE_GROUPS macro

Use ATTRIBUTE_GROUPS macro to reduce the number of lines of code.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent ec109113
...@@ -49,14 +49,7 @@ static struct attribute *bt_link_attrs[] = { ...@@ -49,14 +49,7 @@ static struct attribute *bt_link_attrs[] = {
NULL NULL
}; };
static struct attribute_group bt_link_group = { ATTRIBUTE_GROUPS(bt_link);
.attrs = bt_link_attrs,
};
static const struct attribute_group *bt_link_groups[] = {
&bt_link_group,
NULL
};
static void bt_link_release(struct device *dev) static void bt_link_release(struct device *dev)
{ {
...@@ -182,14 +175,7 @@ static struct attribute *bt_host_attrs[] = { ...@@ -182,14 +175,7 @@ static struct attribute *bt_host_attrs[] = {
NULL NULL
}; };
static struct attribute_group bt_host_group = { ATTRIBUTE_GROUPS(bt_host);
.attrs = bt_host_attrs,
};
static const struct attribute_group *bt_host_groups[] = {
&bt_host_group,
NULL
};
static void bt_host_release(struct device *dev) static void bt_host_release(struct device *dev)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment