From 8168e285bca045ad19be346b8d6b236c34892fff Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sat, 8 Oct 2022 16:22:41 +0200 Subject: soc/mediatek/common/mcu.c: Use 'enum cb_err' instead of 'int' mtk_init_mcu() function already returns enum cb_err. Signed-off-by: Elyes Haouas Change-Id: I562bfbdc5c917a17ce1aa656046b69eb56dce48c Reviewed-on: https://review.coreboot.org/c/coreboot/+/68241 Tested-by: build bot (Jenkins) Reviewed-by: Hung-Te Lin --- src/soc/mediatek/common/include/soc/mcu_common.h | 2 +- src/soc/mediatek/common/mcu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/mediatek/common/include/soc/mcu_common.h b/src/soc/mediatek/common/include/soc/mcu_common.h index 974da52f35..7689c1b814 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 @@ struct mtk_mcu { 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 42b312449f..ca2bdbbd96 100644 --- a/src/soc/mediatek/common/mcu.c +++ b/src/soc/mediatek/common/mcu.c @@ -7,7 +7,7 @@ #include #include -int mtk_init_mcu(struct mtk_mcu *mcu) +enum cb_err mtk_init_mcu(struct mtk_mcu *mcu) { struct stopwatch sw; -- cgit v1.2.3