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>
This commit is contained in:
parent
4ee03170e0
commit
9f2faca246
|
@ -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__ */
|
||||
|
|
Loading…
Reference in New Issue