staging: fsl-mc: enclose macro params in parens
Several macros didn't had macro params enclosed in parens. Fix them to avoid precedence issues. Found with checkpatch.pl who was issuing this message: "Macro argument 'id' may be better as '(id)' to avoid precedence issues" Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
46949b4856
commit
72f3415f81
@ -40,7 +40,7 @@
|
||||
#define DPBP_CMD_BASE_VERSION 1
|
||||
#define DPBP_CMD_ID_OFFSET 4
|
||||
|
||||
#define DPBP_CMD(id) ((id << DPBP_CMD_ID_OFFSET) | DPBP_CMD_BASE_VERSION)
|
||||
#define DPBP_CMD(id) (((id) << DPBP_CMD_ID_OFFSET) | DPBP_CMD_BASE_VERSION)
|
||||
|
||||
/* Command IDs */
|
||||
#define DPBP_CMDID_CLOSE DPBP_CMD(0x800)
|
||||
|
@ -40,7 +40,7 @@
|
||||
#define DPMCP_CMD_BASE_VERSION 1
|
||||
#define DPMCP_CMD_ID_OFFSET 4
|
||||
|
||||
#define DPMCP_CMD(id) ((id << DPMCP_CMD_ID_OFFSET) | DPMCP_CMD_BASE_VERSION)
|
||||
#define DPMCP_CMD(id) (((id) << DPMCP_CMD_ID_OFFSET) | DPMCP_CMD_BASE_VERSION)
|
||||
|
||||
/* Command IDs */
|
||||
#define DPMCP_CMDID_CLOSE DPMCP_CMD(0x800)
|
||||
|
@ -44,7 +44,7 @@
|
||||
#define DPMNG_CMD_BASE_VERSION 1
|
||||
#define DPMNG_CMD_ID_OFFSET 4
|
||||
|
||||
#define DPMNG_CMD(id) ((id << DPMNG_CMD_ID_OFFSET) | DPMNG_CMD_BASE_VERSION)
|
||||
#define DPMNG_CMD(id) (((id) << DPMNG_CMD_ID_OFFSET) | DPMNG_CMD_BASE_VERSION)
|
||||
|
||||
/* Command IDs */
|
||||
#define DPMNG_CMDID_GET_VERSION DPMNG_CMD(0x831)
|
||||
|
@ -48,7 +48,7 @@
|
||||
#define DPRC_CMD_BASE_VERSION 1
|
||||
#define DPRC_CMD_ID_OFFSET 4
|
||||
|
||||
#define DPRC_CMD(id) ((id << DPRC_CMD_ID_OFFSET) | DPRC_CMD_BASE_VERSION)
|
||||
#define DPRC_CMD(id) (((id) << DPRC_CMD_ID_OFFSET) | DPRC_CMD_BASE_VERSION)
|
||||
|
||||
/* Command IDs */
|
||||
#define DPRC_CMDID_CLOSE DPRC_CMD(0x800)
|
||||
|
Loading…
Reference in New Issue
Block a user