projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4d77d5
)
remoteproc: make device_type const
author
Bhumika Goyal
<bhumirks@gmail.com>
Sat, 19 Aug 2017 08:22:22 +0000
(13:52 +0530)
committer
Bjorn Andersson
<bjorn.andersson@linaro.org>
Thu, 24 Aug 2017 17:25:50 +0000
(10:25 -0700)
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: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
patch
|
blob
|
history
diff --git
a/drivers/remoteproc/remoteproc_core.c
b/drivers/remoteproc/remoteproc_core.c
index 364ef28bac849b3f71ac7eb34984752c0419eeec..48b2c5ddfb4d9004bce92048d5dad41efbb9823e 100644
(file)
--- a/
drivers/remoteproc/remoteproc_core.c
+++ b/
drivers/remoteproc/remoteproc_core.c
@@
-1360,7
+1360,7
@@
static void rproc_type_release(struct device *dev)
kfree(rproc);
}
-static struct device_type rproc_type = {
+static
const
struct device_type rproc_type = {
.name = "remoteproc",
.release = rproc_type_release,
};