summaryrefslogtreecommitdiff
path: root/chip/mec1322
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2019-05-16 15:03:53 -0600
committerchrome-bot <chrome-bot@chromium.org>2019-05-17 18:37:29 -0700
commitcd45a75e8c0dea45b94dc530fde7c86cc698fd2d (patch)
tree4bbdb9b091c4c53067882f9f6aa285fd9f1012ec /chip/mec1322
parent7495960f1f6f780fa63a57b9caaddbb82bdd2a32 (diff)
downloadchrome-ec-cd45a75e8c0dea45b94dc530fde7c86cc698fd2d.tar.gz
common: chip_save_reset_flags takes uint32_t
The getters and setters for the reset flags should take and return the same type. `uint32_t' seems the more appropraiate type than `int', so change the setter to take `uint32_t'. BUG=none BRANCH=none TEST=make buildall -j Change-Id: I50928a114858dd51034a048520efa849f5182bd0 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1615648 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'chip/mec1322')
-rw-r--r--chip/mec1322/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/mec1322/system.c b/chip/mec1322/system.c
index 4431ee6954..38b895c471 100644
--- a/chip/mec1322/system.c
+++ b/chip/mec1322/system.c
@@ -93,7 +93,7 @@ void system_pre_init(void)
spi_enable(CONFIG_SPI_FLASH_PORT, 1);
}
-void chip_save_reset_flags(int flags)
+void chip_save_reset_flags(uint32_t flags)
{
MEC1322_VBAT_RAM(HIBDATA_INDEX_SAVED_RESET_FLAGS) = flags;
}