Angel Pons has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/58900 )
Change subject: device/azalia_device.h: Guard macro parameters ......................................................................
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 --- M src/include/device/azalia_device.h 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/00/58900/1
diff --git a/src/include/device/azalia_device.h b/src/include/device/azalia_device.h index 9010507..ca77350 100644 --- a/src/include/device/azalia_device.h +++ b/src/include/device/azalia_device.h @@ -136,7 +136,7 @@ (((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), \