From: Bhumika Goyal Date: Sat, 19 Aug 2017 08:22:16 +0000 (+0530) Subject: mei: make device_type const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b8d01b7fbaa3b9d5887ec6c6fea36fb57bbc4d6b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mei: make device_type const 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c index 40c79089e548..1ac10cb64d6e 100644 --- a/drivers/misc/mei/bus.c +++ b/drivers/misc/mei/bus.c @@ -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, };