Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

memory: renesas-rpc-if: Fix RPCIF_DRENR_CDB macro error

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>

authored by

Biju Das and committed by
Krzysztof Kozlowski
bf657e23 0af2f6be

+1 -1
+1 -1
drivers/memory/renesas-rpc-if.c
··· 56 56 #define RPCIF_DROPR 0x0018 /* R/W */ 57 57 58 58 #define RPCIF_DRENR 0x001C /* R/W */ 59 - #define RPCIF_DRENR_CDB(o) (u32)((((o) & 0x3) << 30)) 59 + #define RPCIF_DRENR_CDB(o) (((u32)((o) & 0x3)) << 30) 60 60 #define RPCIF_DRENR_OCDB(o) (((o) & 0x3) << 28) 61 61 #define RPCIF_DRENR_ADB(o) (((o) & 0x3) << 24) 62 62 #define RPCIF_DRENR_OPDB(o) (((o) & 0x3) << 20)