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