mei: make device_type const
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 19 Aug 2017 08:22:16 +0000 (13:52 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 09:59:39 +0000 (11:59 +0200)
Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/bus.c

index 40c79089e5485928954434d62f4a6f2956e04f1f..1ac10cb64d6ed3e7d5ad20c1d5ebb1ec323fa05d 100644 (file)
@@ -845,7 +845,7 @@ static void mei_cl_bus_dev_release(struct device *dev)
        kfree(cldev);
 }
 
-static struct device_type mei_cl_device_type = {
+static const struct device_type mei_cl_device_type = {
        .release        = mei_cl_bus_dev_release,
 };