platform/chrome: cros_ec_proto: add "cros_ec_" prefix to send_command()
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2122315 Conflicts: drivers/platform/chrome/cros_ec_proto.c - context differences caused parts of the commit to fail, so I searched and replaced all instances of send_command() with cros_ec_send_command() commit d311664b90579c77c66bda18eb93affd4049b255 Author: Tzung-Bi Shih <tzungbi@kernel.org> Date: Mon, 18 Jul 2022 05:09:06 +0000 To be neat, add "cros_ec_" prefix to static function send_command(). Reviewed-by: Guenter Roeck <groeck@chromium.org> Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org> Link: https://lore.kernel.org/r/20220718050914.2267370-3-tzungbi@kernel.org Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
This commit is contained in:
parent
95d30c6321
commit
b813a0d428
|
@ -107,8 +107,7 @@ static int prepare_tx_legacy(struct cros_ec_device *ec_dev,
|
|||
return EC_MSG_TX_PROTO_BYTES + msg->outsize;
|
||||
}
|
||||
|
||||
static int send_command(struct cros_ec_device *ec_dev,
|
||||
struct cros_ec_command *msg)
|
||||
static int cros_ec_send_command(struct cros_ec_device *ec_dev, struct cros_ec_command *msg)
|
||||
{
|
||||
int ret;
|
||||
int (*xfer_fxn)(struct cros_ec_device *ec, struct cros_ec_command *msg);
|
||||
|
@ -255,7 +254,7 @@ static int cros_ec_get_host_event_wake_mask(struct cros_ec_device *ec_dev, uint3
|
|||
msg->command = EC_CMD_HOST_EVENT_GET_WAKE_MASK;
|
||||
msg->insize = sizeof(*r);
|
||||
|
||||
ret = send_command(ec_dev, msg);
|
||||
ret = cros_ec_send_command(ec_dev, msg);
|
||||
if (ret >= 0) {
|
||||
mapped = cros_ec_map_error(msg->result);
|
||||
if (mapped) {
|
||||
|
@ -291,7 +290,7 @@ static int cros_ec_get_proto_info(struct cros_ec_device *ec_dev, int devidx)
|
|||
msg->command = EC_CMD_PASSTHRU_OFFSET(devidx) | EC_CMD_GET_PROTOCOL_INFO;
|
||||
msg->insize = sizeof(*info);
|
||||
|
||||
ret = send_command(ec_dev, msg);
|
||||
ret = cros_ec_send_command(ec_dev, msg);
|
||||
|
||||
if (ret < 0) {
|
||||
dev_dbg(ec_dev->dev,
|
||||
|
@ -364,7 +363,7 @@ static int cros_ec_host_command_proto_query_v2(struct cros_ec_device *ec_dev)
|
|||
|
||||
hello_params->in_data = 0xa0b0c0d0;
|
||||
|
||||
ret = send_command(ec_dev, msg);
|
||||
ret = cros_ec_send_command(ec_dev, msg);
|
||||
|
||||
if (ret < 0) {
|
||||
dev_dbg(ec_dev->dev,
|
||||
|
@ -428,7 +427,7 @@ static int cros_ec_get_host_command_version_mask(struct cros_ec_device *ec_dev,
|
|||
pver = (struct ec_params_get_cmd_versions *)msg->data;
|
||||
pver->cmd = cmd;
|
||||
|
||||
ret = send_command(ec_dev, msg);
|
||||
ret = cros_ec_send_command(ec_dev, msg);
|
||||
if (ret < 0)
|
||||
goto exit;
|
||||
|
||||
|
@ -616,7 +615,7 @@ int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev, struct cros_ec_command *msg)
|
|||
}
|
||||
}
|
||||
|
||||
ret = send_command(ec_dev, msg);
|
||||
ret = cros_ec_send_command(ec_dev, msg);
|
||||
mutex_unlock(&ec_dev->lock);
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue