summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/quanta/ene_kb3940q/ec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ec/quanta/ene_kb3940q/ec.c b/src/ec/quanta/ene_kb3940q/ec.c
index 4fc38da99d..5de6336040 100644
--- a/src/ec/quanta/ene_kb3940q/ec.c
+++ b/src/ec/quanta/ene_kb3940q/ec.c
@@ -125,11 +125,11 @@ void ec_mem_write(u8 addr, u8 data)
static void ene_kb3940q_log_events(void)
{
-#if CONFIG(ELOG)
- u8 reason = ec_mem_read(EC_SHUTDOWN_REASON);
- if (reason)
- elog_add_event_byte(ELOG_TYPE_EC_SHUTDOWN, reason);
-#endif
+ if (CONFIG(ELOG)) {
+ u8 reason = ec_mem_read(EC_SHUTDOWN_REASON);
+ if (reason)
+ elog_add_event_byte(ELOG_TYPE_EC_SHUTDOWN, reason);
+ }
}
static void ene_kb3940q_init(struct device *dev)