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>
This commit is contained in:
Elyes HAOUAS 2021-01-16 13:57:58 +01:00 committed by Patrick Georgi
parent 1e4779e87e
commit 2826cdccd1
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@
#include <soc/addressmap.h> #include <soc/addressmap.h>
#include "sn65dsi86bridge.h" #include "sn65dsi86bridge.h"
#define BRIDGE_GETHIGHERBYTE(x) (uint8_t)((x & 0xff00) >> 8) #define BRIDGE_GETHIGHERBYTE(x) ((uint8_t)((x & 0xff00) >> 8))
#define BRIDGE_GETLOWERBYTE(x) (uint8_t)((x & 0x00ff)) #define BRIDGE_GETLOWERBYTE(x) ((uint8_t)(x & 0x00ff))
/* fudge factor required to account for 8b/10b encoding */ /* fudge factor required to account for 8b/10b encoding */
#define DP_CLK_FUDGE_NUM 10 #define DP_CLK_FUDGE_NUM 10