projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74bf16d
)
coresight: tmc: constify amba_id
author
Arvind Yadav
<
[email protected]
>
Thu, 24 Aug 2017 16:36:04 +0000
(22:06 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Mon, 28 Aug 2017 14:06:39 +0000
(16:06 +0200)
amba_id are not supposed to change at runtime. All functions
working with const amba_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/hwtracing/coresight/coresight-tmc.c
patch
|
blob
|
history
diff --git
a/drivers/hwtracing/coresight/coresight-tmc.c
b/drivers/hwtracing/coresight/coresight-tmc.c
index 4fd112f11096a621659a66993491f83efe29c7ae..2ff4a66a3caa2c72df61241586c60513285a6913 100644
(file)
--- a/
drivers/hwtracing/coresight/coresight-tmc.c
+++ b/
drivers/hwtracing/coresight/coresight-tmc.c
@@
-437,7
+437,7
@@
out:
return ret;
}
-static struct amba_id tmc_ids[] = {
+static
const
struct amba_id tmc_ids[] = {
{
.id = 0x0003b961,
.mask = 0x0003ffff,