diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-24 22:06:02 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 16:06:48 +0200 |
commit | c214f76213f9112c04077bc22c659dc2781d4029 (patch) | |
tree | 9e97c3520879b278ed1bdd9eb9b6754a0a361bda /drivers/hwtracing/coresight/coresight-dynamic-replicator.c | |
parent | 44d5af088b2e454ede49bc77eeec2ce5d0b9f079 (diff) | |
download | op-kernel-dev-c214f76213f9112c04077bc22c659dc2781d4029.zip op-kernel-dev-c214f76213f9112c04077bc22c659dc2781d4029.tar.gz |
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/hwtracing/coresight/coresight-dynamic-replicator.c')
-rw-r--r-- | drivers/hwtracing/coresight/coresight-dynamic-replicator.c | 2 |
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 87bcf21..accc205 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, |