staging: rtl8712: efuse: code style - avoid macro argument precedence issues
PATCH v3 1/1 staging: rtl8712: efuse: code style - avoid macro argument precedence issues
From: Aliya Rahmani <[email protected]>
This patch fixes checkpatch warnings of precedence issues. Added parentheses around macro arguments 'offset' and 'word_en'.
Signed-off-by Aliya Rahmani <[email protected]>
---
v1 -> v2: Updated the description of the fixes.
v2 -> v3: Rework the changes and commit message.
---
drivers/staging/rtl8712/rtl8712_efuse.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8712/rtl8712_efuse.h +2 -2
@@ -15,8 +15,8 @@#define GET_EFUSE_OFFSET (header) ((header & 0xF0) >> 4)#define GET_EFUSE_WORD_EN (header) (header & 0x0F) -#define MAKE_EFUSE_HEADER (offset, word_en) (((offset & 0x0F) << 4) | \ - (word_en & 0x0F)) +#define MAKE_EFUSE_HEADER (offset, word_en) ((((offset) & 0x0F) << 4) | \ + ((word_en) & 0x0F))/*--------------------------------------------------------------------------*/ struct PGPKT_STRUCT {u8 offset;
Signature · 1 line
2.25.1