summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-19 13:52:16 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 11:59:39 +0200
commitb8d01b7fbaa3b9d5887ec6c6fea36fb57bbc4d6b (patch)
tree985d3ea8ed81987abac987869edf9033c4adcbe6 /drivers/misc
parente8d2ed7db7c3cfbe92923c49cc5e830b0a0ee374 (diff)
downloadlinux-b8d01b7fbaa3b9d5887ec6c6fea36fb57bbc4d6b.tar.gz
linux-b8d01b7fbaa3b9d5887ec6c6fea36fb57bbc4d6b.tar.bz2
linux-b8d01b7fbaa3b9d5887ec6c6fea36fb57bbc4d6b.zip
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 <bhumirks@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/mei/bus.c2
1 files changed, 1 insertions, 1 deletions
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,
};