From: Bhumika Goyal Date: Sat, 19 Aug 2017 09:24:47 +0000 (+0530) Subject: Bluetooth: make device_type const X-Git-Tag: v4.14-rc1~130^2~24^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9374bf18dbb533912898b07b3751fbce40fae5c4;p=thirdparty%2Fkernel%2Flinux.git 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: Bhumika Goyal Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c index ca7a35ebaefb6..aa300f3a0d51b 100644 --- a/net/bluetooth/hci_sysfs.c +++ b/net/bluetooth/hci_sysfs.c @@ -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, };