Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/68241 )
Change subject: soc/mediatek/common/mcu.c: Use 'enum cb_err' instead of 'int' ......................................................................
soc/mediatek/common/mcu.c: Use 'enum cb_err' instead of 'int'
Signed-off-by: Elyes Haouas ehaouas@noos.fr Change-Id: I562bfbdc5c917a17ce1aa656046b69eb56dce48c --- M src/soc/mediatek/common/include/soc/mcu_common.h M src/soc/mediatek/common/mcu.c 2 files changed, 12 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/41/68241/1
diff --git a/src/soc/mediatek/common/include/soc/mcu_common.h b/src/soc/mediatek/common/include/soc/mcu_common.h index 974da52..7689c1b 100644 --- a/src/soc/mediatek/common/include/soc/mcu_common.h +++ b/src/soc/mediatek/common/include/soc/mcu_common.h @@ -13,6 +13,6 @@ void (*reset)(struct mtk_mcu *mcu); /* The reset callback */ };
-int mtk_init_mcu(struct mtk_mcu *mcu); +enum cb_err mtk_init_mcu(struct mtk_mcu *mcu);
#endif /* SOC_MEDIATEK_MTLIB_COMMON_H */ diff --git a/src/soc/mediatek/common/mcu.c b/src/soc/mediatek/common/mcu.c index 42b3124..ca2bdbb 100644 --- a/src/soc/mediatek/common/mcu.c +++ b/src/soc/mediatek/common/mcu.c @@ -7,7 +7,7 @@ #include <soc/symbols.h> #include <timer.h>
-int mtk_init_mcu(struct mtk_mcu *mcu) +enum cb_err mtk_init_mcu(struct mtk_mcu *mcu) { struct stopwatch sw;