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:
parent
898a77521d
commit
f8574bf4a7
|
@ -34,7 +34,7 @@
|
||||||
#define IT8716F_GAME 0x09 /* GAME port */
|
#define IT8716F_GAME 0x09 /* GAME port */
|
||||||
#define IT8716F_IR 0x0a /* Consumer IR */
|
#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. */
|
/* Provided by mainboard, called by IT8716F superio.c. */
|
||||||
void init_ec(u16 base);
|
void init_ec(u16 base);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
#include "it8716f.h"
|
#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)
|
static void init_ec(u16 base)
|
||||||
{
|
{
|
||||||
|
|
|
@ -112,7 +112,7 @@ static void vt1211_pnp_set_resources(struct device *dev)
|
||||||
{
|
{
|
||||||
struct resource *res;
|
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? */
|
/* TODO: Do the same for SP2? */
|
||||||
if (dev->path.pnp.device == VT1211_SP1) {
|
if (dev->path.pnp.device == VT1211_SP1) {
|
||||||
for (res = dev->resource_list; res; res = res->next) {
|
for (res = dev->resource_list; res; res = res->next) {
|
||||||
|
|
Loading…
Reference in New Issue