aboutsummaryrefslogtreecommitdiff
path: root/src/ec/quanta
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2017-06-24 14:09:38 -0600
committerMartin Roth <martinroth@google.com>2017-06-28 17:49:22 +0000
commitf5c3518f0eaa3896efa684293aac69b4893ff7ae (patch)
tree02891cee1f52c105fe4100eecc3c47a696abb153 /src/ec/quanta
parentb3b114c28f6e7c11b327fce84d93141498d5f665 (diff)
src/ec: add IS_ENABLED() around Kconfig symbol references
Change-Id: Ic2cdfa08cdae9f698eb2f8fa4c4ae061f1a7d903 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20340 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'src/ec/quanta')
-rw-r--r--src/ec/quanta/ene_kb3940q/ec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ec/quanta/ene_kb3940q/ec.c b/src/ec/quanta/ene_kb3940q/ec.c
index 8558d3de9b..b25a51ba01 100644
--- a/src/ec/quanta/ene_kb3940q/ec.c
+++ b/src/ec/quanta/ene_kb3940q/ec.c
@@ -129,7 +129,7 @@ void ec_mem_write(u8 addr, u8 data)
#ifndef __SMM__
static void ene_kb3940q_log_events(void)
{
-#if CONFIG_ELOG
+#if IS_ENABLED(CONFIG_ELOG)
u8 reason = ec_mem_read(EC_SHUTDOWN_REASON);
if (reason)
elog_add_event_byte(ELOG_TYPE_EC_SHUTDOWN, reason);