summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXi Chen <xixi.chen@mediatek.corp-partner.google.com>2022-03-16 14:55:15 +0800
committerFelix Held <felix-coreboot@felixheld.de>2022-03-18 15:40:26 +0000
commit0ca7aab7609032af3f70f7ab660fd52969fa3617 (patch)
tree86dda3b3b5fd59c1d2a1499009e64f08540dee9e
parent8df9cbb6abdcd8210ba8e9a2b5e33c2af4ca886c (diff)
downloadcoreboot-0ca7aab7609032af3f70f7ab660fd52969fa3617.tar.gz
commonlib/bsd: Add struct name "mem_chip_channel" for external access
struct mem_chip_info { ... struct { --> If no struct name, can't access the channel structure ... } channel[0]; }; BUG=b:182963902,b:177917361 TEST=Build pass on Kingler Signed-off-by: Xi Chen <xixi.chen@mediatek.corp-partner.google.com> Change-Id: I8dcd3b52f33f80afb7885ffdcad826d86b54b543 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62850 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
-rw-r--r--src/commonlib/bsd/include/commonlib/bsd/mem_chip_info.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commonlib/bsd/include/commonlib/bsd/mem_chip_info.h b/src/commonlib/bsd/include/commonlib/bsd/mem_chip_info.h
index 7194f70174..8dc6db3439 100644
--- a/src/commonlib/bsd/include/commonlib/bsd/mem_chip_info.h
+++ b/src/commonlib/bsd/include/commonlib/bsd/mem_chip_info.h
@@ -15,7 +15,7 @@ struct mem_chip_info {
uint8_t type; /* enum mem_chip_type */
uint8_t num_channels;
uint8_t reserved[6];
- struct {
+ struct mem_chip_channel {
uint64_t density;
uint8_t io_width;
uint8_t manufacturer_id;