diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-24 18:36:04 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 16:06:39 +0200 |
commit | 6f964e7c175cafa65862f7a884cea49c023a0e90 (patch) | |
tree | cdd4c5a8403e905fe87814b5f4e395baf9d857b3 /drivers/hwtracing | |
parent | coresight: tpiu: constify amba_id (diff) | |
download | linux-6f964e7c175cafa65862f7a884cea49c023a0e90.tar.xz linux-6f964e7c175cafa65862f7a884cea49c023a0e90.zip |
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.c | 2 |
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, |