]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
coresight: tpda: Constify amba_id table
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 22 Feb 2025 11:38:58 +0000 (12:38 +0100)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 24 Feb 2025 09:48:43 +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-2-69a377cd098b@linaro.org
drivers/hwtracing/coresight/coresight-tpda.c

index 189a4abc2561e3ec256c63f615112c2159360c86..573da8427428d430ab7f11398d1980193e21481f 100644 (file)
@@ -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,