From cd49cce7b70e80b4acc49b56bb2bb94370b4d867 Mon Sep 17 00:00:00 2001 From: Julius Werner Date: Tue, 5 Mar 2019 16:53:33 -0800 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/31774 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/drivers/net/r8168.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/drivers/net') diff --git a/src/drivers/net/r8168.c b/src/drivers/net/r8168.c index 4057ffde52..3200163ab3 100644 --- a/src/drivers/net/r8168.c +++ b/src/drivers/net/r8168.c @@ -190,7 +190,7 @@ static void program_mac_address(struct device *dev, u16 io_base) bool mac_found = false; /* check the VPD for the mac address */ - if (IS_ENABLED(CONFIG_RT8168_GET_MAC_FROM_VPD)) { + if (CONFIG(RT8168_GET_MAC_FROM_VPD)) { /* Current implementation is up to 10 NIC cards */ if (config && config->device_index <= MAX_DEVICE_SUPPORT) { /* check "ethernet_mac" first when the device index is 1 */ @@ -294,11 +294,11 @@ static void r8168_init(struct device *dev) program_mac_address(dev, io_base); /* Program customized LED mode */ - if (IS_ENABLED(CONFIG_RT8168_SET_LED_MODE)) + if (CONFIG(RT8168_SET_LED_MODE)) r8168_set_customized_led(dev, io_base); } -#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES) +#if CONFIG(HAVE_ACPI_TABLES) #define R8168_ACPI_HID "R8168" static void r8168_net_fill_ssdt(struct device *dev) { @@ -346,7 +346,7 @@ static struct device_operations r8168_ops = { .enable_resources = pci_dev_enable_resources, .init = r8168_init, .scan_bus = 0, -#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES) +#if CONFIG(HAVE_ACPI_TABLES) .acpi_name = r8168_net_acpi_name, .acpi_fill_ssdt_generator = r8168_net_fill_ssdt, #endif -- cgit v1.2.3