summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-24 19:36:02 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 17:06:48 +0300
commitc214f76213f9112c04077bc22c659dc2781d4029 (patch)
tree9e97c3520879b278ed1bdd9eb9b6754a0a361bda /drivers
parent44d5af088b2e454ede49bc77eeec2ce5d0b9f079 (diff)
downloadlinux-c214f76213f9112c04077bc22c659dc2781d4029.tar.xz
coresight: replicator: 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')
-rw-r--r--drivers/hwtracing/coresight/coresight-dynamic-replicator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwtracing/coresight/coresight-dynamic-replicator.c b/drivers/hwtracing/coresight/coresight-dynamic-replicator.c
index 87bcf2123e66..accc2056f7c6 100644
--- a/drivers/hwtracing/coresight/coresight-dynamic-replicator.c
+++ b/drivers/hwtracing/coresight/coresight-dynamic-replicator.c
@@ -197,7 +197,7 @@ static const struct dev_pm_ops replicator_dev_pm_ops = {
NULL)
};
-static struct amba_id replicator_ids[] = {
+static const struct amba_id replicator_ids[] = {
{
.id = 0x0003b909,
.mask = 0x0003ffff,