summaryrefslogtreecommitdiff
path: root/src/ec/google
diff options
context:
space:
mode:
authorYu-Ping Wu <yupingso@chromium.org>2019-10-31 16:51:52 +0800
committerPatrick Georgi <pgeorgi@google.com>2019-11-04 11:43:49 +0000
commit816326576ace8a46af1dba4a2b9e8d80ea2cbc7d (patch)
treeddbcecaca14f44434107e5fe3828fb25c0de2f1d /src/ec/google
parentab0d687fc5ab7fb07e7c383c10902b586415c9bf (diff)
include: Remove EC_EVENT_* from elog.h
All of the EC_EVENT_* macros can be replaced with the EC_HOST_EVENT_* macros defined in ec_commands.h, which is synchronized from Chromium OS ec repository. BRANCH=none BUG=none TEST=emerge-kukui coreboot Change-Id: I12c7101866d8365b87a6483a160187cc9526010a Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36499 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/ec/google')
-rw-r--r--src/ec/google/chromeec/ec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ec/google/chromeec/ec.c b/src/ec/google/chromeec/ec.c
index 2715e0b7f6..a9921467f4 100644
--- a/src/ec/google/chromeec/ec.c
+++ b/src/ec/google/chromeec/ec.c
@@ -97,7 +97,7 @@ void log_recovery_mode_switch(void)
static void google_chromeec_elog_add_recovery_event(void *unused)
{
uint64_t *events = cbmem_find(CBMEM_ID_EC_HOSTEVENT);
- uint8_t event_byte = EC_EVENT_KEYBOARD_RECOVERY;
+ uint8_t event_byte = EC_HOST_EVENT_KEYBOARD_RECOVERY;
if (!events)
return;
@@ -107,7 +107,7 @@ static void google_chromeec_elog_add_recovery_event(void *unused)
if (*events &
EC_HOST_EVENT_MASK(EC_HOST_EVENT_KEYBOARD_RECOVERY_HW_REINIT))
- event_byte = EC_EVENT_KEYBOARD_RECOVERY_HWREINIT;
+ event_byte = EC_HOST_EVENT_KEYBOARD_RECOVERY_HW_REINIT;
elog_add_event_byte(ELOG_TYPE_EC_EVENT, event_byte);
}