diff options
author | Yidi Lin <yidilin@chromium.org> | 2024-11-26 23:03:48 +0800 |
---|---|---|
committer | Yidi Lin <yidilin@chromium.org> | 2024-11-28 13:41:40 +0000 |
commit | 7f36241461510b0f083b04485564ffa544f973a4 (patch) | |
tree | 2b7be4b4fd0c61a1fe31de23b525094fe3702bf2 /src/soc/mediatek/common/include | |
parent | f8e4cdd05815ce4f00fb353731314e29207b0af8 (diff) |
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 <yidilin@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85327
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek/common/include')
-rw-r--r-- | src/soc/mediatek/common/include/soc/pmif_spmi.h | 2 |
1 files changed, 1 insertions, 1 deletions
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__ */ |