commit | 9dd1a12f9c3199fe9f678a4997bb163a1eb1bb96 | [log] [tgz] |
---|---|---|
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | Wed Nov 06 11:04:27 2019 +0200 |
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | Sat Nov 09 10:49:47 2019 +0000 |
tree | 13440c2c992bf76005b3165671328d6ed154e5e9 | |
parent | 7e4bfe4b91cc8dbc18a4b940c26f372e471d49db [diff] [blame] |
ELOG: Introduce elog_gsmi variants This avoids a lot of if (CONFIG(ELOG_GSMI)) boilerplate. Change-Id: I87d25c820daedeb33b3b474a6632a89ea80b0867 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36647 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/mainboard/google/link/mainboard_smi.c b/src/mainboard/google/link/mainboard_smi.c index 96ae1cc..cd8fb09 100644 --- a/src/mainboard/google/link/mainboard_smi.c +++ b/src/mainboard/google/link/mainboard_smi.c
@@ -32,11 +32,9 @@ { u8 cmd = google_chromeec_get_event(); -#if CONFIG(ELOG_GSMI) /* Log this event */ if (cmd) - elog_add_event_byte(ELOG_TYPE_EC_EVENT, cmd); -#endif + elog_gsmi_add_event_byte(ELOG_TYPE_EC_EVENT, cmd); switch (cmd) { case EC_HOST_EVENT_LID_CLOSED: