diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2022-10-08 16:22:41 +0200 |
---|---|---|
committer | Sridhar Siricilla <sridhar.siricilla@intel.com> | 2023-01-12 10:33:56 +0000 |
commit | 8168e285bca045ad19be346b8d6b236c34892fff (patch) | |
tree | 9665aca4edec7f35ed2c33f1d2464f0f1cdffae7 /src | |
parent | 0ae7a8b765f27f1df2330334ed25bc41732f9ea1 (diff) |
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')
-rw-r--r-- | src/soc/mediatek/common/include/soc/mcu_common.h | 2 | ||||
-rw-r--r-- | 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 <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; |