summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorEric Lai <eric_lai@quanta.corp-partner.google.com>2022-12-20 13:08:05 +0800
committerEric Lai <eric_lai@quanta.corp-partner.google.com>2022-12-24 05:50:54 +0000
commitbffa9066fa19bf9b7ef8d4b205a82b76c47f781f (patch)
tree858b2db5efddf39e98e679763290b6c58259b71b /src/mainboard/google
parent51f1822421cb5433f714a478e20ffa06781ac2c9 (diff)
mb/google/brya/var/taeko: Use get_wifi_sar_fw_config_filename
Use get_wifi_sar_fw_config_filename to remove the duplicate code. WIFI_SAR_CBFS_DEFAULT_FILENAME is not exist, so return the non-exist id has the same outcome. Signed-off-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Change-Id: Ib7a764d8cc3160c26abad9c1757812b955bef066 Reviewed-on: https://review.coreboot.org/c/coreboot/+/71122 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/mainboard/google')
-rw-r--r--src/mainboard/google/brya/variants/taeko/variant.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mainboard/google/brya/variants/taeko/variant.c b/src/mainboard/google/brya/variants/taeko/variant.c
index 7d993a4129..b44e9e3dab 100644
--- a/src/mainboard/google/brya/variants/taeko/variant.c
+++ b/src/mainboard/google/brya/variants/taeko/variant.c
@@ -5,9 +5,5 @@
const char *get_wifi_sar_cbfs_filename(void)
{
- if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_ID_0)))
- return "wifi_sar_0.hex";
- else if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_ID_1)))
- return "wifi_sar_1.hex";
- return WIFI_SAR_CBFS_DEFAULT_FILENAME;
+ return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_SAR_ID));
}