diff mbox series

[1/3] coresight: catu: Constify amba_id table

Message ID 20250222-coresight-const-arm-id-v1-1-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-catu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/hwtracing/coresight/coresight-catu.c b/drivers/hwtracing/coresight/coresight-catu.c
index 275cc0d9f505fb0c1b2847da94fdfd468c49c6c4..947bf6f331f92df6a2e0fa97bdf3b001c7fa9027 100644
--- a/drivers/hwtracing/coresight/coresight-catu.c
+++ b/drivers/hwtracing/coresight/coresight-catu.c
@@ -594,7 +594,7 @@  static void catu_remove(struct amba_device *adev)
 	__catu_remove(&adev->dev);
 }
 
-static struct amba_id catu_ids[] = {
+static const struct amba_id catu_ids[] = {
 	CS_AMBA_ID(0x000bb9ee),
 	{},
 };