diff options
author | Ruihai Zhou <zhouruihai@huaqin.corp-partner.google.com> | 2024-04-07 14:45:50 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-04-09 09:20:20 +0000 |
commit | 04b89c5a37f223d7a7a666ade1f970be5564c9ab (patch) | |
tree | 120789574140221812efd9febf0210e81519fa71 /src/soc/mediatek/common | |
parent | 9e6b9992ff6480974ff4325bc78e688037e0e861 (diff) |
soc/mediatek/common/include/soc: Include header file for check_member
To fix the build error below when include i2c_common.h, we should
include the necessary header for check_member.
"""
src/soc/mediatek/common/include/soc/i2c_common.h:24:42: error: expected ')' before numeric constant
24 | check_member(mt_i2c_dma_regs, dma_tx_len, 0x24);
| ^~~~~
| )
"""
TEST=abuild -t google/geralt -b ciri -a
Signed-off-by: Ruihai Zhou <zhouruihai@huaqin.corp-partner.google.com>
Change-Id: I266571686e452e2b7514afee42ff0a48f8891831
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81684
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Yidi Lin <yidilin@google.com>
Reviewed-by: Eric Lai <ericllai@google.com>
Reviewed-by: cong yang <yangcong5@huaqin.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek/common')
-rw-r--r-- | src/soc/mediatek/common/include/soc/i2c_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/soc/mediatek/common/include/soc/i2c_common.h b/src/soc/mediatek/common/include/soc/i2c_common.h index 4f4449ce78..63eef92f27 100644 --- a/src/soc/mediatek/common/include/soc/i2c_common.h +++ b/src/soc/mediatek/common/include/soc/i2c_common.h @@ -3,6 +3,7 @@ #ifndef MTK_COMMON_I2C_H #define MTK_COMMON_I2C_H +#include <commonlib/bsd/helpers.h> #include <device/i2c.h> /* I2C DMA Registers */ |