coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX)
This patch is a raw application of find src/ -type f | xargs sed -i -e 's/IS_ENABLED\s*(CONFIG_/CONFIG(/g' Change-Id: I6262d6d5c23cabe23c242b4f38d446b74fe16b88 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31774 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
committed by
Patrick Georgi
parent
b3a8cc54db
commit
cd49cce7b7
@@ -1066,7 +1066,7 @@ void acpi_write_bert(acpi_bert_t *bert, uintptr_t region, size_t length)
|
||||
header->checksum = acpi_checksum((void *)bert, header->length);
|
||||
}
|
||||
|
||||
#if IS_ENABLED(CONFIG_COMMON_FADT)
|
||||
#if CONFIG(COMMON_FADT)
|
||||
void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
|
||||
{
|
||||
acpi_header_t *header = &(fadt->header);
|
||||
@@ -1088,11 +1088,11 @@ void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
|
||||
fadt->x_dsdt_l = (unsigned long)dsdt;
|
||||
fadt->x_dsdt_h = 0;
|
||||
|
||||
if (IS_ENABLED(CONFIG_SYSTEM_TYPE_CONVERTIBLE) ||
|
||||
IS_ENABLED(CONFIG_SYSTEM_TYPE_LAPTOP))
|
||||
if (CONFIG(SYSTEM_TYPE_CONVERTIBLE) ||
|
||||
CONFIG(SYSTEM_TYPE_LAPTOP))
|
||||
fadt->preferred_pm_profile = PM_MOBILE;
|
||||
else if (IS_ENABLED(CONFIG_SYSTEM_TYPE_DETACHABLE) ||
|
||||
IS_ENABLED(CONFIG_SYSTEM_TYPE_TABLET))
|
||||
else if (CONFIG(SYSTEM_TYPE_DETACHABLE) ||
|
||||
CONFIG(SYSTEM_TYPE_TABLET))
|
||||
fadt->preferred_pm_profile = PM_TABLET;
|
||||
else
|
||||
fadt->preferred_pm_profile = PM_DESKTOP;
|
||||
@@ -1256,7 +1256,7 @@ unsigned long write_acpi_tables(unsigned long start)
|
||||
acpi_add_table(rsdp, mcfg);
|
||||
}
|
||||
|
||||
if (IS_ENABLED(CONFIG_TPM1)) {
|
||||
if (CONFIG(TPM1)) {
|
||||
printk(BIOS_DEBUG, "ACPI: * TCPA\n");
|
||||
tcpa = (acpi_tcpa_t *) current;
|
||||
acpi_create_tcpa(tcpa);
|
||||
@@ -1267,7 +1267,7 @@ unsigned long write_acpi_tables(unsigned long start)
|
||||
}
|
||||
}
|
||||
|
||||
if (IS_ENABLED(CONFIG_TPM2)) {
|
||||
if (CONFIG(TPM2)) {
|
||||
printk(BIOS_DEBUG, "ACPI: * TPM2\n");
|
||||
tpm2 = (acpi_tpm2_t *) current;
|
||||
acpi_create_tpm2(tpm2);
|
||||
|
Reference in New Issue
Block a user