projects
/
GitHub
/
LineageOS
/
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:
ac317e2
)
mux: make device_type const
author
Bhumika Goyal
<bhumirks@gmail.com>
Tue, 29 Aug 2017 08:49:52 +0000
(10:49 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 29 Aug 2017 11:46:35 +0000
(13:46 +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: Peter Rosin <peda@axentia.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mux/core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mux/core.c
b/drivers/mux/core.c
index aabfb1549d4e47c2a094cb6e212442f51338c3ea..2260063b0ea83be7f24e5d780af8bd808c23b427 100644
(file)
--- a/
drivers/mux/core.c
+++ b/
drivers/mux/core.c
@@
-58,7
+58,7
@@
static void mux_chip_release(struct device *dev)
kfree(mux_chip);
}
-static struct device_type mux_type = {
+static
const
struct device_type mux_type = {
.name = "mux-chip",
.release = mux_chip_release,
};