summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-11-03 11:12:35 +0100
committerFelix Held <felix-coreboot@felixheld.de>2021-11-04 00:22:46 +0000
commit779d0c66df2cc5ec4db476fa80c2aa01661e48a6 (patch)
tree240c3cc9aae837285479b4021c7e897e1795e6b3
parent09cbb064fcfab857e4d353a1c3dc5e0916d7ee60 (diff)
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>
-rw-r--r--src/include/device/azalia_device.h2
1 files changed, 1 insertions, 1 deletions
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), \