summaryrefslogtreecommitdiffstats
path: root/src/soc/mediatek/common
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-10-08 16:22:41 +0200
committerSridhar Siricilla <sridhar.siricilla@intel.com>2023-01-12 10:33:56 +0000
commit8168e285bca045ad19be346b8d6b236c34892fff (patch)
tree9665aca4edec7f35ed2c33f1d2464f0f1cdffae7 /src/soc/mediatek/common
parent0ae7a8b765f27f1df2330334ed25bc41732f9ea1 (diff)
downloadcoreboot-8168e285bca045ad19be346b8d6b236c34892fff.tar.gz
coreboot-8168e285bca045ad19be346b8d6b236c34892fff.tar.bz2
coreboot-8168e285bca045ad19be346b8d6b236c34892fff.zip
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 <ehaouas@noos.fr> Change-Id: I562bfbdc5c917a17ce1aa656046b69eb56dce48c Reviewed-on: https://review.coreboot.org/c/coreboot/+/68241 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'src/soc/mediatek/common')
-rw-r--r--src/soc/mediatek/common/include/soc/mcu_common.h2
-rw-r--r--src/soc/mediatek/common/mcu.c2
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 974da52f35ce..7689c1b814cb 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 42b312449f7e..ca2bdbbd966b 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;