projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8d2ed7
)
mei: make device_type const
author
Bhumika Goyal
<bhumirks@gmail.com>
Sat, 19 Aug 2017 08:22:16 +0000
(13:52 +0530)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/misc/mei/bus.c
b/drivers/misc/mei/bus.c
index
40c7908
..
1ac10cb
100644
(file)
--- 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,
};