projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/drivers/misc/mei/bus.c
b/drivers/misc/mei/bus.c
index 40c79089e5485928954434d62f4a6f2956e04f1f..1ac10cb64d6ed3e7d5ad20c1d5ebb1ec323fa05d 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,
};