From 555a4470c7e6373cb6d5397ea5e9278317bcb008 Mon Sep 17 00:00:00 2001 From: You-Cheng Syu Date: Tue, 9 Apr 2019 13:04:34 +0800 Subject: include: Move RESET_FLAG_* into ec_commands.h as EC_RESET_FLAG_* RESET_FLAGS_* are used when setting/reading the field ec_reset_flags of struct ec_response_uptime_info, which is defined in ec_commands.h. So it might be better to put those macros there. To be consistent with the other macros in the file, add "EC_" prefixes to them. BUG=b:109900671,b:118654976 BRANCH=none TEST=make buildall -j Cq-Depend: chrome-internal:1054910, chrome-internal:1054911, chrome-internal:1045539 Change-Id: If72ec25f1b34d8d46b74479fb4cd09252102aafa Signed-off-by: You-Cheng Syu Reviewed-on: https://chromium-review.googlesource.com/1520574 Tested-by: Yu-Ping Wu Commit-Ready: Yu-Ping Wu Legacy-Commit-Queue: Commit Bot Reviewed-by: Yilun Lin Reviewed-by: Daisuke Nojiri --- chip/stm32/flash-stm32l.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chip/stm32/flash-stm32l.c') diff --git a/chip/stm32/flash-stm32l.c b/chip/stm32/flash-stm32l.c index ef4f19e09d..a151a26cf8 100644 --- a/chip/stm32/flash-stm32l.c +++ b/chip/stm32/flash-stm32l.c @@ -436,7 +436,7 @@ int flash_pre_init(void) * If we have already jumped between images, an earlier image could * have applied write protection. Nothing additional needs to be done. */ - if (reset_flags & RESET_FLAG_SYSJUMP) + if (reset_flags & EC_RESET_FLAG_SYSJUMP) return EC_SUCCESS; if (prot_flags & EC_FLASH_PROTECT_GPIO_ASSERTED) { -- cgit v1.2.1