]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
memory: renesas-rpc-if: Fix RPCIF_DRENR_CDB macro error
authorBiju Das <biju.das.jz@bp.renesas.com>
Tue, 1 Apr 2025 14:35:20 +0000 (15:35 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 15 Apr 2025 06:19:02 +0000 (08:19 +0200)
Fix the below macro error found while moving the reg definitions
to renesas-rpc-if-regs.h in the later patch.

ERROR: Macros with complex values should be enclosed in parentheses

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20250401143537.224047-3-biju.das.jz@bp.renesas.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/memory/renesas-rpc-if.c

index 15b4706aafee9f337f95ed956cd2ed53018e4342..c29bec8327e8c0ee4a01f4f1d74c38795fb74eef 100644 (file)
@@ -56,7 +56,7 @@
 #define RPCIF_DROPR            0x0018  /* R/W */
 
 #define RPCIF_DRENR            0x001C  /* R/W */
-#define RPCIF_DRENR_CDB(o)     (u32)((((o) & 0x3) << 30))
+#define RPCIF_DRENR_CDB(o)     (((u32)((o) & 0x3)) << 30)
 #define RPCIF_DRENR_OCDB(o)    (((o) & 0x3) << 28)
 #define RPCIF_DRENR_ADB(o)     (((o) & 0x3) << 24)
 #define RPCIF_DRENR_OPDB(o)    (((o) & 0x3) << 20)