diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-24 12:36:00 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 10:06:48 -0400 |
commit | c5520c93c78ff30903422e9a8be8ef297bc6496f (patch) | |
tree | cb35fc327be072a896a55cd1d1843f41ef7c1484 /drivers/hwtracing | |
parent | 87c89af76397b86ecd8250f6c9ce3d0d0e220763 (diff) |
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: | |||
1052 | return ret; | 1052 | return ret; |
1053 | } | 1053 | } |
1054 | 1054 | ||
1055 | static struct amba_id etm4_ids[] = { | 1055 | static const struct amba_id etm4_ids[] = { |
1056 | { /* ETM 4.0 - Cortex-A53 */ | 1056 | { /* ETM 4.0 - Cortex-A53 */ |
1057 | .id = 0x000bb95d, | 1057 | .id = 0x000bb95d, |
1058 | .mask = 0x000fffff, | 1058 | .mask = 0x000fffff, |