diff mbox series

[2/3] coresight: tpda: Constify amba_id table

Message ID 20250222-coresight-const-arm-id-v1-2-69a377cd098b@linaro.org (mailing list archive)
State New
Headers show
Series hwtracing: coresight: Minor const fixes | expand

Commit Message

Krzysztof Kozlowski Feb. 22, 2025, 11:38 a.m. UTC
'struct amba_id' table is not modified so can be changed to const for
more safety.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/hwtracing/coresight/coresight-tpda.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/hwtracing/coresight/coresight-tpda.c b/drivers/hwtracing/coresight/coresight-tpda.c
index 189a4abc2561e3ec256c63f615112c2159360c86..573da8427428d430ab7f11398d1980193e21481f 100644
--- a/drivers/hwtracing/coresight/coresight-tpda.c
+++ b/drivers/hwtracing/coresight/coresight-tpda.c
@@ -331,7 +331,7 @@  static void tpda_remove(struct amba_device *adev)
  * Different TPDA has different periph id.
  * The difference is 0-7 bits' value. So ignore 0-7 bits.
  */
-static struct amba_id tpda_ids[] = {
+static const struct amba_id tpda_ids[] = {
 	{
 		.id     = 0x000f0f00,
 		.mask   = 0x000fff00,