device/azalia_device.h: Guard macro parameters

Add parentheses around macro parameters to avoid operation order issues.

Change-Id: Ic984a82da5eb31fc2921cff3265ac5ea2be098c7
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58900
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Angel Pons 2021-11-03 11:12:35 +01:00 committed by Felix Held
parent 09cbb064fc
commit 779d0c66df
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ enum azalia_pin_location_2 {
(((codec) << 28) | ((pin) << 20) | (0x71f << 8) \
| (((val) >> 24) & 0xff))
#define AZALIA_PIN_CFG_NC(n) (0x411111f0 | (n & 0xf))
#define AZALIA_PIN_CFG_NC(n) (0x411111f0 | ((n) & 0xf))
#define AZALIA_RESET(pin) \
(((pin) << 20) | 0x7ff00), (((pin) << 20) | 0x7ff00), \