ec/kontron/kempld: Guard macro parameters

Add parentheses around macro parameters to avoid operation order issues.

Change-Id: I2d4552abaeda5702619cc53e9dfae1f17b048e67
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/54952
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Angel Pons 2021-05-26 14:19:09 +02:00 committed by Werner Zeh
parent e7266e8393
commit f696d797dc
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,8 @@
/* indexed registers */
#define KEMPLD_SPEC 0x06
#define KEMPLD_SPEC_GET_MINOR(x) (x & 0x0f)
#define KEMPLD_SPEC_GET_MAJOR(x) (x >> 4 & 0x0f)
#define KEMPLD_SPEC_GET_MINOR(x) ((x) & 0x0f)
#define KEMPLD_SPEC_GET_MAJOR(x) ((x) >> 4 & 0x0f)
#define KEMPLD_CFG 0x37
#define KEMPLD_CFG_GPIO_I2C_MUX (1 << 0)