summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8192
diff options
context:
space:
mode:
authorYu-Ping Wu <yupingso@chromium.org>2024-11-05 17:53:55 +0800
committerYu-Ping Wu <yupingso@google.com>2024-11-12 05:33:15 +0000
commit49e6be85cd1c87610ba6a44ee8d5ffe521d2cad3 (patch)
tree5b6ba189bc667a32921a20f11f83bc9dbd7dc232 /src/soc/mediatek/mt8192
parente431f96f80c091af562558dbd72f6833cb441280 (diff)
soc/mediatek/**/spi.h: Enclose complex macros in parentheses
Fix the checkpatch error: Macros with complex values should be enclosed in parentheses Change-Id: Ia0e4582c1dd19ed3f757a2cb3c3fc33138302d74 Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/85001 Reviewed-by: Yidi Lin <yidilin@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek/mt8192')
-rw-r--r--src/soc/mediatek/mt8192/include/soc/spi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/mediatek/mt8192/include/soc/spi.h b/src/soc/mediatek/mt8192/include/soc/spi.h
index 28fe8390c8..e2f69554f9 100644
--- a/src/soc/mediatek/mt8192/include/soc/spi.h
+++ b/src/soc/mediatek/mt8192/include/soc/spi.h
@@ -7,8 +7,8 @@
#define SPI_BUS_NUMBER 8
-#define GET_SCK_REG(x) x->spi_cfg2_reg
-#define GET_TICK_DLY_REG(x) x->spi_cfg1_reg
+#define GET_SCK_REG(x) ((x)->spi_cfg2_reg)
+#define GET_TICK_DLY_REG(x) ((x)->spi_cfg1_reg)
DEFINE_BITFIELD(SPI_CFG_CS_HOLD, 15, 0)
DEFINE_BITFIELD(SPI_CFG_CS_SETUP, 31, 16)