From b78e4620375cc5668db668d900340fd89271c330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Thu, 15 Dec 2022 22:12:29 +0200 Subject: Convert literal uses of CONFIG_MAINBOARD_{VENDOR,PART_NUMBER} MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only expand these strings in lib/identity.o. Change-Id: I8732bbeff8cf8a757bf32fdb615b1d0f97584585 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/74907 Tested-by: build bot (Jenkins) Reviewed-by: Hung-Te Lin Reviewed-by: Yu-Ping Wu Reviewed-by: Felix Held --- src/drivers/i2c/max98390/max98390.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/drivers/i2c') diff --git a/src/drivers/i2c/max98390/max98390.c b/src/drivers/i2c/max98390/max98390.c index 12c8c9da9d..9786e2bc13 100644 --- a/src/drivers/i2c/max98390/max98390.c +++ b/src/drivers/i2c/max98390/max98390.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include "chip.h" @@ -68,8 +69,8 @@ static void max98390_fill_ssdt(const struct device *dev) dp = acpi_dp_new_table("_DSD"); size_t chars = snprintf(dsm_name, sizeof(dsm_name), "%s_%s_%s.bin", - config->dsm_param_file_name, CONFIG_MAINBOARD_VENDOR, - CONFIG_MAINBOARD_PART_NUMBER); + config->dsm_param_file_name, mainboard_vendor, + mainboard_part_number); if (chars >= sizeof(dsm_name)) printk(BIOS_ERR, "String too long in %s\n", __func__); -- cgit v1.2.3