diff options
author | Dossym Nurmukhanov <dossym@google.com> | 2020-12-11 11:17:39 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-12 12:55:43 +0000 |
commit | 61022575d3c8b75d07e4f3be3f1616e45767f673 (patch) | |
tree | 236ac65b862e8bf1c825c5862e788a3ae783ee24 /common/charge_state_v2.c | |
parent | a86aecb2de50437622e91ee451079175cdef5e1d (diff) | |
download | chrome-ec-61022575d3c8b75d07e4f3be3f1616e45767f673.tar.gz |
COIL: Use inclusive language for EC-EC communication code
Replace with server/client nomenclature
BUG=none
TEST=build and run on volteer
BRANCH=none
Signed-off-by: dossym@chromium.org
Change-Id: I23fe7de9228a9611b49eef1362bf15159b25aab7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2586038
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'common/charge_state_v2.c')
-rw-r--r-- | common/charge_state_v2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/charge_state_v2.c b/common/charge_state_v2.c index 6734b15569..4bb6eb947a 100644 --- a/common/charge_state_v2.c +++ b/common/charge_state_v2.c @@ -306,11 +306,11 @@ static void update_base_battery_info(void) int flags_changed; int old_full_capacity = bd->full_capacity; - ec_ec_master_base_get_dynamic_info(); + ec_ec_client_base_get_dynamic_info(); flags_changed = (old_flags != bd->flags); /* Fetch static information when flags change. */ if (flags_changed) - ec_ec_master_base_get_static_info(); + ec_ec_client_base_get_static_info(); battery_memmap_refresh(BATT_IDX_BASE); @@ -350,7 +350,7 @@ static int set_base_current(int current_base, int allow_charge_base) const int otg_voltage = db_policy.otg_voltage; int ret; - ret = ec_ec_master_base_charge_control(current_base, + ret = ec_ec_client_base_charge_control(current_base, otg_voltage, allow_charge_base); if (ret) { /* Ignore errors until the base is responsive. */ @@ -560,7 +560,7 @@ static void charge_allocate_input_current_limit(void) if (base_responsive) { /* Base still responsive, put it to sleep. */ CPRINTF("Hibernating base\n"); - ec_ec_master_hibernate(); + ec_ec_client_hibernate(); base_responsive = 0; board_enable_base_power(0); } @@ -2088,7 +2088,7 @@ wait_for_it: #endif #ifdef CONFIG_EC_EC_COMM_BATTERY_SLAVE /* - * On EC-EC slave, do not charge if curr.ac is 0: there + * On EC-EC server, do not charge if curr.ac is 0: there * might still be some external power available but we * do not want to use it for charging. */ |