summaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-24 22:06:00 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 16:06:48 +0200
commitc5520c93c78ff30903422e9a8be8ef297bc6496f (patch)
treecb35fc327be072a896a55cd1d1843f41ef7c1484 /drivers/hwtracing
parent87c89af76397b86ecd8250f6c9ce3d0d0e220763 (diff)
downloadtalos-obmc-linux-c5520c93c78ff30903422e9a8be8ef297bc6496f.tar.gz
talos-obmc-linux-c5520c93c78ff30903422e9a8be8ef297bc6496f.zip
coresight: etm4x: constify amba_id
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 <arvind.yadav.cs@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwtracing')
-rw-r--r--drivers/hwtracing/coresight/coresight-etm4x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwtracing/coresight/coresight-etm4x.c b/drivers/hwtracing/coresight/coresight-etm4x.c
index ac77b4c973d8..cf364a514c12 100644
--- a/drivers/hwtracing/coresight/coresight-etm4x.c
+++ b/drivers/hwtracing/coresight/coresight-etm4x.c
@@ -1052,7 +1052,7 @@ err_arch_supported:
return ret;
}
-static struct amba_id etm4_ids[] = {
+static const struct amba_id etm4_ids[] = {
{ /* ETM 4.0 - Cortex-A53 */
.id = 0x000bb95d,
.mask = 0x000fffff,
OpenPOWER on IntegriCloud