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:
b29f6d3
)
intel_th: Constify subdevices
author
Alexander Shishkin
<
[email protected]
>
Fri, 18 Nov 2016 14:52:08 +0000
(16:52 +0200)
committer
Alexander Shishkin
<
[email protected]
>
Fri, 18 Nov 2016 15:07:18 +0000
(17:07 +0200)
The subdevice array consists of immutable objects, make them const.
Signed-off-by: Alexander Shishkin <
[email protected]
>
drivers/hwtracing/intel_th/core.c
patch
|
blob
|
history
diff --git
a/drivers/hwtracing/intel_th/core.c
b/drivers/hwtracing/intel_th/core.c
index 6f0a51a2c6ec6df69d6761057c4747c419bffbdc..79e19627b99fd4505097db5199dab5f2ca8da1fd 100644
(file)
--- a/
drivers/hwtracing/intel_th/core.c
+++ b/
drivers/hwtracing/intel_th/core.c
@@
-380,7
+380,7
@@
static void intel_th_device_free(struct intel_th_device *thdev)
/*
* Intel(R) Trace Hub subdevices
*/
-static struct intel_th_subdevice {
+static
const
struct intel_th_subdevice {
const char *name;
struct resource res[3];
unsigned nres;