]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mailbox: arm_mhu_db: Constify amba_id table
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 22 Feb 2025 11:36:20 +0000 (12:36 +0100)
committerJassi Brar <jassisinghbrar@gmail.com>
Thu, 27 Mar 2025 01:58:25 +0000 (20:58 -0500)
'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: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/arm_mhu_db.c

index 27a510d46908236f371c33d40f2265aa5bc55b1f..9e937b09c5fbcee146faa1f954ca82d8404652ef 100644 (file)
@@ -328,7 +328,7 @@ static int mhu_db_probe(struct amba_device *adev, const struct amba_id *id)
        return 0;
 }
 
-static struct amba_id mhu_ids[] = {
+static const struct amba_id mhu_ids[] = {
        {
                .id     = 0x1bb098,
                .mask   = 0xffffff,