]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mailbox: arm_mhuv2: Constify amba_id table
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 22 Feb 2025 11:36:21 +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_mhuv2.c

index cff7c343ee082a6dcfaaf3633ee2f0e090b702e9..f035284944c05643f40ba55399a2dd34088d1e28 100644 (file)
@@ -1107,7 +1107,7 @@ static void mhuv2_remove(struct amba_device *adev)
                writel_relaxed(0x0, &mhu->send->access_request);
 }
 
-static struct amba_id mhuv2_ids[] = {
+static const struct amba_id mhuv2_ids[] = {
        {
                /* 2.0 */
                .id = 0xbb0d1,