Skip to content

Commit bf657e2

Browse files
bijudaskrzk
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 0af2f6b commit bf657e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/memory/renesas-rpc-if.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
#define RPCIF_DROPR 0x0018 /* R/W */
5757

5858
#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)
6060
#define RPCIF_DRENR_OCDB(o) (((o) & 0x3) << 28)
6161
#define RPCIF_DRENR_ADB(o) (((o) & 0x3) << 24)
6262
#define RPCIF_DRENR_OPDB(o) (((o) & 0x3) << 20)

0 commit comments

Comments
 (0)