Skip to content

Commit

Permalink
coresight: constify amba_id
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arvind Yadav authored and Greg Kroah-Hartman committed Aug 28, 2017
1 parent 5959f3d commit 0875957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwtracing/coresight/coresight-cpu-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0875957

Please sign in to comment.