summaryrefslogtreecommitdiff
path: root/src/superio
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2017-06-24 21:38:19 -0600
committerMartin Roth <martinroth@google.com>2017-07-07 16:06:49 +0000
commitf8574bf4a7627228b9cdd14aa77589ac5b355c08 (patch)
tree4cc767e23d4a6bf286f1a029c9ad8f67a307ed70 /src/superio
parent898a77521de97b1e4af9458b82bcc21bc7a6e799 (diff)
downloadcoreboot-f8574bf4a7627228b9cdd14aa77589ac5b355c08.tar.xz
src/superio: add IS_ENABLED() around Kconfig symbol references
Change-Id: Ie9a7127b50db8dc9a2b543843ca4d815afe3d07e Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20351 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/superio')
-rw-r--r--src/superio/ite/it8716f/it8716f.h2
-rw-r--r--src/superio/ite/it8716f/superio.c2
-rw-r--r--src/superio/via/vt1211/vt1211.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/superio/ite/it8716f/it8716f.h b/src/superio/ite/it8716f/it8716f.h
index d4f40fa9aa..3531a1301a 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 09c8bb9a18..2ec38751ad 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 c40741ab4c..28586baa22 100644
--- a/src/superio/via/vt1211/vt1211.c
+++ b/src/superio/via/vt1211/vt1211.c
@@ -112,7 +112,7 @@ static void vt1211_pnp_set_resources(struct device *dev)
{
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) {