Martin Roth has uploaded this change for review. ( https://review.coreboot.org/20351
Change subject: src/superio: add IS_ENABLED() around Kconfig symbol references ......................................................................
src/superio: add IS_ENABLED() around Kconfig symbol references
Change-Id: Ie9a7127b50db8dc9a2b543843ca4d815afe3d07e Signed-off-by: Martin Roth martinroth@google.com --- M src/superio/ite/it8716f/it8716f.h M src/superio/ite/it8716f/superio.c M src/superio/via/vt1211/vt1211.c 3 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/20351/1
diff --git a/src/superio/ite/it8716f/it8716f.h b/src/superio/ite/it8716f/it8716f.h index d4f40fa..3531a13 100644 --- a/src/superio/ite/it8716f/it8716f.h +++ b/src/superio/ite/it8716f/it8716f.h @@ -34,7 +34,7 @@ #define IT8716F_GAME 0x09 /* GAME port */ #define IT8716F_IR 0x0a /* Consumer IR */
-#if CONFIG_SUPERIO_ITE_IT8716F_OVERRIDE_FANCTL +#if IS_ENABLED(CONFIG_SUPERIO_ITE_IT8716F_OVERRIDE_FANCTL) /* Provided by mainboard, called by IT8716F superio.c. */ void init_ec(u16 base); #endif diff --git a/src/superio/ite/it8716f/superio.c b/src/superio/ite/it8716f/superio.c index 09c8bb9..2ec3875 100644 --- a/src/superio/ite/it8716f/superio.c +++ b/src/superio/ite/it8716f/superio.c @@ -27,7 +27,7 @@
#include "it8716f.h"
-#if !CONFIG_SUPERIO_ITE_IT8716F_OVERRIDE_FANCTL +#if !IS_ENABLED(CONFIG_SUPERIO_ITE_IT8716F_OVERRIDE_FANCTL)
static void init_ec(u16 base) { diff --git a/src/superio/via/vt1211/vt1211.c b/src/superio/via/vt1211/vt1211.c index c40741a..28586ba 100644 --- a/src/superio/via/vt1211/vt1211.c +++ b/src/superio/via/vt1211/vt1211.c @@ -112,7 +112,7 @@ { struct resource *res;
-#if CONFIG_CONSOLE_SERIAL && CONFIG_DRIVERS_UART_8250IO +#if IS_ENABLED(CONFIG_CONSOLE_SERIAL) && IS_ENABLED(CONFIG_DRIVERS_UART_8250IO) /* TODO: Do the same for SP2? */ if (dev->path.pnp.device == VT1211_SP1) { for (res = dev->resource_list; res; res = res->next) {