diff options
author | Rex-BC Chen <rex-bc.chen@mediatek.com> | 2022-07-20 10:22:53 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-07-21 10:30:57 +0000 |
commit | d5dafb2c0a6bac5c9d87f0e07e339570e0fd3267 (patch) | |
tree | 9a1efa4a808f6f9c97343c2cd32e2b073d2ea96e /src/mainboard/google/corsola/regulator.c | |
parent | 8ba3e34f18f041b231acfae10b6e4cc2533532da (diff) |
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 <rex-bc.chen@mediatek.com>
Change-Id: Iadf0408e8914d6e32915464f93979978c4634eaf
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65994
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/mainboard/google/corsola/regulator.c')
-rw-r--r-- | src/mainboard/google/corsola/regulator.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mainboard/google/corsola/regulator.c b/src/mainboard/google/corsola/regulator.c index d607497a4f..4f03c181e2 100644 --- a/src/mainboard/google/corsola/regulator.c +++ b/src/mainboard/google/corsola/regulator.c @@ -26,8 +26,7 @@ static const int regulator_id[] = { _Static_assert(ARRAY_SIZE(regulator_id) == MTK_REGULATOR_NUM, "regulator_id size error"); -void mainboard_set_regulator_vol(enum mtk_regulator regulator, - uint32_t voltage_uv) +void mainboard_set_regulator_voltage(enum mtk_regulator regulator, uint32_t voltage_uv) { assert(regulator < MTK_REGULATOR_NUM); @@ -38,7 +37,7 @@ void mainboard_set_regulator_vol(enum mtk_regulator regulator, mt6366_set_voltage(regulator_id[regulator], voltage_uv); } -uint32_t mainboard_get_regulator_vol(enum mtk_regulator regulator) +uint32_t mainboard_get_regulator_voltage(enum mtk_regulator regulator) { assert(regulator < MTK_REGULATOR_NUM); |