HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/49508 )
Change subject: drivers/ti/sn65dsi86bridge: Add parentheses to Macros ......................................................................
drivers/ti/sn65dsi86bridge: Add parentheses to Macros
Change-Id: I2f3a9885171995633d0bfb22b7ff8ef8a68683b8 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/drivers/ti/sn65dsi86bridge/sn65dsi86bridge.c 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/08/49508/1
diff --git a/src/drivers/ti/sn65dsi86bridge/sn65dsi86bridge.c b/src/drivers/ti/sn65dsi86bridge/sn65dsi86bridge.c index 44a8088..ca41cdb 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