Răsfoiți Sursa

coresight: 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>
Arvind Yadav 8 ani în urmă
părinte
comite
0875957e4b
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      drivers/hwtracing/coresight/coresight-cpu-debug.c

+ 1 - 1
drivers/hwtracing/coresight/coresight-cpu-debug.c

@@ -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,