From d5dafb2c0a6bac5c9d87f0e07e339570e0fd3267 Mon Sep 17 00:00:00 2001 From: Rex-BC Chen Date: Wed, 20 Jul 2022 10:22:53 +0800 Subject: mb/google: Replace some strings in regulator.c From comments of CB:65875, we replace *_vol to *_voltage. s/mainboard_set_regulator_vol/mainboard_set_regulator_voltage/ s/mainboard_get_regulator_vol/mainboard_get_regulator_voltage/ TEST=build pass BUG=b:233720142 Signed-off-by: Bo-Chen Chen Change-Id: Iadf0408e8914d6e32915464f93979978c4634eaf Reviewed-on: https://review.coreboot.org/c/coreboot/+/65994 Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu --- src/soc/mediatek/common/include/soc/regulator.h | 5 ++--- src/soc/mediatek/mt8186/msdc.c | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src/soc') diff --git a/src/soc/mediatek/common/include/soc/regulator.h b/src/soc/mediatek/common/include/soc/regulator.h index 84bb364afd..0acf91059d 100644 --- a/src/soc/mediatek/common/include/soc/regulator.h +++ b/src/soc/mediatek/common/include/soc/regulator.h @@ -23,9 +23,8 @@ enum mtk_regulator { MTK_REGULATOR_NUM, }; -void mainboard_set_regulator_vol(enum mtk_regulator regulator, - uint32_t voltage_uv); -uint32_t mainboard_get_regulator_vol(enum mtk_regulator regulator); +void mainboard_set_regulator_voltage(enum mtk_regulator regulator, uint32_t voltage_uv); +uint32_t mainboard_get_regulator_voltage(enum mtk_regulator regulator); int mainboard_enable_regulator(enum mtk_regulator regulator, uint8_t enable); uint8_t mainboard_regulator_is_enabled(enum mtk_regulator regulator); diff --git a/src/soc/mediatek/mt8186/msdc.c b/src/soc/mediatek/mt8186/msdc.c index cfdb0f2cfb..1a316db34d 100644 --- a/src/soc/mediatek/mt8186/msdc.c +++ b/src/soc/mediatek/mt8186/msdc.c @@ -102,6 +102,6 @@ void mtk_msdc_configure_sdcard(void) MSDC1_GPIO_MODE1_1, MSDC1_GPIO_MODE1_VALUE); /* enable SDCard power */ - mainboard_set_regulator_vol(MTK_REGULATOR_VMCH, 3300000); - mainboard_set_regulator_vol(MTK_REGULATOR_VMC, 3300000); + mainboard_set_regulator_voltage(MTK_REGULATOR_VMCH, 3300000); + mainboard_set_regulator_voltage(MTK_REGULATOR_VMC, 3300000); } -- cgit v1.2.3