From 779d0c66df2cc5ec4db476fa80c2aa01661e48a6 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Wed, 3 Nov 2021 11:12:35 +0100 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/58900 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- src/include/device/azalia_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/device/azalia_device.h b/src/include/device/azalia_device.h index 9010507aee..ca77350478 100644 --- a/src/include/device/azalia_device.h +++ b/src/include/device/azalia_device.h @@ -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), \ -- cgit v1.2.3