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:
parent
b3a8cc54db
commit
cd49cce7b7
920 changed files with 2285 additions and 2285 deletions
|
|
@ -52,12 +52,12 @@ struct device_operations {
|
|||
void (*disable)(struct device *dev);
|
||||
void (*set_link)(struct device *dev, unsigned int link);
|
||||
void (*reset_bus)(struct bus *bus);
|
||||
#if IS_ENABLED(CONFIG_GENERATE_SMBIOS_TABLES)
|
||||
#if CONFIG(GENERATE_SMBIOS_TABLES)
|
||||
int (*get_smbios_data)(struct device *dev, int *handle,
|
||||
unsigned long *current);
|
||||
void (*get_smbios_strings)(struct device *dev, struct smbios_type11 *t);
|
||||
#endif
|
||||
#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES)
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
unsigned long (*write_acpi_tables)(struct device *dev,
|
||||
unsigned long start, struct acpi_rsdp *rsdp);
|
||||
void (*acpi_fill_ssdt_generator)(struct device *dev);
|
||||
|
|
@ -158,7 +158,7 @@ extern struct bus *free_links;
|
|||
|
||||
extern const char mainboard_name[];
|
||||
|
||||
#if IS_ENABLED(CONFIG_GFXUMA)
|
||||
#if CONFIG(GFXUMA)
|
||||
/* IGD UMA memory */
|
||||
extern uint64_t uma_memory_base;
|
||||
extern uint64_t uma_memory_size;
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
* disabled.
|
||||
* @{
|
||||
*/
|
||||
#if IS_ENABLED(CONFIG_DEBUG_RAM_SETUP)
|
||||
#if CONFIG(DEBUG_RAM_SETUP)
|
||||
#define printram(x, ...) printk(BIOS_DEBUG, x, ##__VA_ARGS__)
|
||||
#else
|
||||
#define printram(x, ...)
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
* disabled.
|
||||
* @{
|
||||
*/
|
||||
#if IS_ENABLED(CONFIG_DEBUG_RAM_SETUP)
|
||||
#if CONFIG(DEBUG_RAM_SETUP)
|
||||
#define printram(x, ...) printk(BIOS_DEBUG, x, ##__VA_ARGS__)
|
||||
#else
|
||||
#define printram(x, ...)
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
/**
|
||||
* \brief printk macro for SMBus debugging
|
||||
*/
|
||||
#if IS_ENABLED(CONFIG_DEBUG_SMBUS)
|
||||
#if CONFIG(DEBUG_SMBUS)
|
||||
#define printsmbus(x, ...) printk(BIOS_DEBUG, x, ##__VA_ARGS__)
|
||||
#else
|
||||
#define printsmbus(x, ...)
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
#ifndef PCI_H
|
||||
#define PCI_H
|
||||
|
||||
#if IS_ENABLED(CONFIG_PCI)
|
||||
#if CONFIG(PCI)
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ u8 *pci_ehci_base_regs(pci_devfn_t dev);
|
|||
void pci_ehci_dbg_set_port(pci_devfn_t dev, unsigned int port);
|
||||
|
||||
#ifndef __PRE_RAM__
|
||||
#if !IS_ENABLED(CONFIG_USBDEBUG)
|
||||
#if !CONFIG(USBDEBUG)
|
||||
#define pci_ehci_read_resources pci_dev_read_resources
|
||||
#else
|
||||
/* Relocation of EHCI Debug Port BAR
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ void pci_mmio_write_config32(pci_devfn_t dev, unsigned int where, u32 value)
|
|||
write32(addr, value);
|
||||
}
|
||||
|
||||
#if IS_ENABLED(CONFIG_MMCONF_SUPPORT)
|
||||
#if CONFIG(MMCONF_SUPPORT)
|
||||
|
||||
/* Avoid name collisions as different stages have different signature
|
||||
* for these functions. The _s_ stands for simple, fundamental IO or
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ static inline int smbus_write_byte(struct device *const dev, u8 addr, u8 val)
|
|||
int smbus_block_read(struct device *dev, u8 cmd, u8 bytes, u8 *buffer);
|
||||
int smbus_block_write(struct device *dev, u8 cmd, u8 bytes, const u8 *buffer);
|
||||
|
||||
#if IS_ENABLED(CONFIG_SMBUS_HAS_AUX_CHANNELS)
|
||||
#if CONFIG(SMBUS_HAS_AUX_CHANNELS)
|
||||
void smbus_switch_to_channel(uint8_t channel_number);
|
||||
uint8_t smbus_get_current_channel(void);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue