From 7f36241461510b0f083b04485564ffa544f973a4 Mon Sep 17 00:00:00 2001 From: Yidi Lin Date: Tue, 26 Nov 2024 23:03:48 +0800 Subject: soc/mediatek: Eliminate redundant calls to get_pmif_controller() It is unnecessary to look up PMIF controller by mstid in multiple functions. Just pass `arb` to these functions in order to avoid redundant calls to get_pmif_controller(). BUG=none TEST=compiled Change-Id: I907d6ff029827e4afe4f1d05e39c8dd662c7c45e Signed-off-by: Yidi Lin Reviewed-on: https://review.coreboot.org/c/coreboot/+/85327 Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) --- src/soc/mediatek/common/include/soc/pmif_spmi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/mediatek/common/include') diff --git a/src/soc/mediatek/common/include/soc/pmif_spmi.h b/src/soc/mediatek/common/include/soc/pmif_spmi.h index f62e3439b7..8610c54e3b 100644 --- a/src/soc/mediatek/common/include/soc/pmif_spmi.h +++ b/src/soc/mediatek/common/include/soc/pmif_spmi.h @@ -95,5 +95,5 @@ extern const size_t spmi_dev_cnt; int pmif_spmi_init(struct pmif *arb); int spmi_config_master(void); void pmif_spmi_iocfg(void); -void pmif_spmi_config(struct pmif *arb, int mstid); +void pmif_spmi_config(struct pmif *arb); #endif /* __SOC_MEDIATEK_PMIF_SPMI_H__ */ -- cgit v1.2.3