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>
This commit is contained in:
Martin Roth
2017-06-24 21:38:19 -06:00
parent 898a77521d
commit f8574bf4a7
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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)
{