coresight: constify amba_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 24 Aug 2017 16:35:57 +0000 (22:05 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 14:06:48 +0000 (16:06 +0200)
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>
drivers/hwtracing/coresight/coresight-cpu-debug.c

index 64a77e00eaa6a3757ffd2cae08dbd1f481bf4923..6ea62c62ff27123ed21e5119deceab6d0afa0e7d 100644 (file)
@@ -667,7 +667,7 @@ static int debug_remove(struct amba_device *adev)
        return 0;
 }
 
-static struct amba_id debug_ids[] = {
+static const struct amba_id debug_ids[] = {
        {       /* Debug for Cortex-A53 */
                .id     = 0x000bbd03,
                .mask   = 0x000fffff,