diff options
author | Eric Lai <eric_lai@quanta.corp-partner.google.com> | 2022-12-22 08:12:51 +0800 |
---|---|---|
committer | Eric Lai <eric_lai@quanta.corp-partner.google.com> | 2022-12-24 05:50:00 +0000 |
commit | 9f2faca246e32170fcc9154b0bc2dd31a8404721 (patch) | |
tree | 751d43b19232b31ebb3107d1268f832c50659799 /src/include | |
parent | 4ee03170e058313477b8f0bbfc81d093a6197d98 (diff) |
lib: add stub for fw_config_get_field
Return UNDEFINED_FW_CONFIG with disabled fw_config.
Signed-off-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Change-Id: I0d31ff3ba7706039c622bd1ec825d216a0f21fe4
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71176
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Ivy Jian <ivy.jian@quanta.corp-partner.google.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/fw_config.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/fw_config.h b/src/include/fw_config.h index 04fdf98921..9f5e4b83ad 100644 --- a/src/include/fw_config.h +++ b/src/include/fw_config.h @@ -117,6 +117,12 @@ static inline bool fw_config_probe_dev(const struct device *dev, return true; } +static inline uint64_t fw_config_get_field(const struct fw_config_field *field) +{ + /* Always return UNDEFINED_FW_CONFIG when get with disabled fw_config. */ + return UNDEFINED_FW_CONFIG; +} + #endif /* CONFIG(FW_CONFIG) */ #endif /* __FW_CONFIG__ */ |