From cd45a75e8c0dea45b94dc530fde7c86cc698fd2d Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Thu, 16 May 2019 15:03:53 -0600 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/1615648 Reviewed-by: Daisuke Nojiri --- chip/mchp/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chip/mchp') diff --git a/chip/mchp/system.c b/chip/mchp/system.c index 689675716d..3117638bd5 100644 --- a/chip/mchp/system.c +++ b/chip/mchp/system.c @@ -199,7 +199,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) { MCHP_VBAT_RAM(HIBDATA_INDEX_SAVED_RESET_FLAGS) = flags; } -- cgit v1.2.1