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/ec_ec_comm_client.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/ec_ec_comm_client.c')
-rw-r--r-- | common/ec_ec_comm_client.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/common/ec_ec_comm_client.c b/common/ec_ec_comm_client.c index d2602470bc..c92433af8c 100644 --- a/common/ec_ec_comm_client.c +++ b/common/ec_ec_comm_client.c @@ -2,7 +2,7 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * - * EC-EC communication, functions and definitions for master. + * EC-EC communication, functions and definitions for client. */ #include "battery.h" @@ -22,11 +22,11 @@ * TODO(b:65697962): The packed structures below do not play well if we force EC * host commands structures to be aligned on 32-bit boundary. There are ways to * fix that, possibly requiring copying data around, or modifying - * uart_alt_pad_write_read API to write the actual slave response to a separate + * uart_alt_pad_write_read API to write the actual server response to a separate * buffer. */ #ifdef CONFIG_HOSTCMD_ALIGNED -#error "Cannot define CONFIG_HOSTCMD_ALIGNED with EC-EC communication master." +#error "Cannot define CONFIG_HOSTCMD_ALIGNED with EC-EC communication client." #endif #define EC_EC_HOSTCMD_VERSION 4 @@ -78,7 +78,7 @@ struct { * crc8 are verified by this function). * * This format is required as the EC-EC UART is half-duplex, and all the - * transmitted data is received back, i.e. the master writes req, then reads + * transmitted data is received back, i.e. the client writes req, then reads * req, followed by resp. * * When a command does not take parameters, param/crc8 must be omitted in @@ -113,12 +113,12 @@ static int write_command(uint16_t command, struct ec_host_response4 *response_header = (void *)&data[tx_length]; - /* RX length is TX length + response from slave. */ + /* RX length is TX length + response from server. */ int rx_length = tx_length + sizeof(*request_header) + ((resp_len > 0) ? (resp_len + 1) : 0); /* - * Make sure there is a gap between each command, so that the slave + * Make sure there is a gap between each command, so that the server * can recover its state machine after each command. * * TODO(b:65697962): We can be much smarter than this, and record the @@ -241,7 +241,7 @@ static int handle_error(const char *func, int ret, int request_result) } #ifdef CONFIG_EC_EC_COMM_BATTERY -int ec_ec_master_base_get_dynamic_info(void) +int ec_ec_client_base_get_dynamic_info(void) { int ret; struct { @@ -281,7 +281,7 @@ int ec_ec_master_base_get_dynamic_info(void) return EC_RES_SUCCESS; } -int ec_ec_master_base_get_static_info(void) +int ec_ec_client_base_get_static_info(void) { int ret; struct { @@ -321,7 +321,7 @@ int ec_ec_master_base_get_static_info(void) return EC_RES_SUCCESS; } -int ec_ec_master_base_charge_control(int max_current, +int ec_ec_client_base_charge_control(int max_current, int otg_voltage, int allow_charging) { @@ -347,7 +347,7 @@ int ec_ec_master_base_charge_control(int max_current, return handle_error(__func__, ret, data.resp.head.result); } -int ec_ec_master_hibernate(void) +int ec_ec_client_hibernate(void) { int ret; struct { |