diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2021-01-16 13:57:58 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-01-18 07:48:09 +0000 |
commit | 2826cdccd17ae57acadad0d3ff1770914714ef7c (patch) | |
tree | d68ef3dbe05dde343f3e354475e703be4d23e1c6 /src/drivers | |
parent | 1e4779e87e62d42086da16ddc5bfb0627b3b31ee (diff) |
drivers/ti/sn65dsi86bridge: Add parentheses to Macros
Change-Id: I2f3a9885171995633d0bfb22b7ff8ef8a68683b8
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49508
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/ti/sn65dsi86bridge/sn65dsi86bridge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/ti/sn65dsi86bridge/sn65dsi86bridge.c b/src/drivers/ti/sn65dsi86bridge/sn65dsi86bridge.c index 44a80884aa..ca41cdbd76 100644 --- a/src/drivers/ti/sn65dsi86bridge/sn65dsi86bridge.c +++ b/src/drivers/ti/sn65dsi86bridge/sn65dsi86bridge.c @@ -10,8 +10,8 @@ #include <soc/addressmap.h> #include "sn65dsi86bridge.h" -#define BRIDGE_GETHIGHERBYTE(x) (uint8_t)((x & 0xff00) >> 8) -#define BRIDGE_GETLOWERBYTE(x) (uint8_t)((x & 0x00ff)) +#define BRIDGE_GETHIGHERBYTE(x) ((uint8_t)((x & 0xff00) >> 8)) +#define BRIDGE_GETLOWERBYTE(x) ((uint8_t)(x & 0x00ff)) /* fudge factor required to account for 8b/10b encoding */ #define DP_CLK_FUDGE_NUM 10 |