提交 9374bf18 编写于 作者: B Bhumika Goyal 提交者: Marcel Holtmann

Bluetooth: make device_type const

Make these const as they are only stored in the type field of a device
structure, which is const.
Done using Coccinelle.
Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 01d300c5
......@@ -13,7 +13,7 @@ static void bt_link_release(struct device *dev)
kfree(conn);
}
static struct device_type bt_link = {
static const struct device_type bt_link = {
.name = "link",
.release = bt_link_release,
};
......@@ -86,7 +86,7 @@ static void bt_host_release(struct device *dev)
module_put(THIS_MODULE);
}
static struct device_type bt_host = {
static const struct device_type bt_host = {
.name = "host",
.release = bt_host_release,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册