summaryrefslogtreecommitdiff
path: root/drivers/hwtracing
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-24 19:36:04 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 17:06:39 +0300
commit6f964e7c175cafa65862f7a884cea49c023a0e90 (patch)
treecdd4c5a8403e905fe87814b5f4e395baf9d857b3 /drivers/hwtracing
parent74bf16d0ded97fd6c52a69cfbfd868e9fae0a0bd (diff)
downloadlinux-6f964e7c175cafa65862f7a884cea49c023a0e90.tar.xz
coresight: tmc: 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-tmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwtracing/coresight/coresight-tmc.c b/drivers/hwtracing/coresight/coresight-tmc.c
index 4fd112f11096..2ff4a66a3caa 100644
--- 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,