]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
coresight: tpdm: Constify amba_id table
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 22 Feb 2025 11:38:59 +0000 (12:38 +0100)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 24 Feb 2025 09:48:49 +0000 (09:48 +0000)
'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>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250222-coresight-const-arm-id-v1-3-69a377cd098b@linaro.org
drivers/hwtracing/coresight/coresight-tpdm.c

index c38f9701665e70c0fb58726980332dbe65e09790..afc4c18dd35d0ab1cc474214b1df6f816e1aed68 100644 (file)
@@ -1305,7 +1305,7 @@ static void tpdm_remove(struct amba_device *adev)
  * Different TPDM has different periph id.
  * The difference is 0-7 bits' value. So ignore 0-7 bits.
  */
-static struct amba_id tpdm_ids[] = {
+static const struct amba_id tpdm_ids[] = {
        {
                .id     = 0x001f0e00,
                .mask   = 0x00ffff00,