Skip to content

Commit

Permalink
platform/chrome: cros_ec_proto: Do not export cros_ec_cmd_xfer()
Browse files Browse the repository at this point in the history
Now that all the remaining users of cros_ec_cmd_xfer() has been removed,
make this function private to the cros_ec_proto module.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
  • Loading branch information
Enric Balletbo i Serra committed Jul 23, 2020
1 parent 698d4d3 commit c1e18d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 2 additions & 3 deletions drivers/platform/chrome/cros_ec_proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,8 +496,8 @@ EXPORT_SYMBOL(cros_ec_query_all);
*
* Return: 0 on success or negative error code.
*/
int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev,
struct cros_ec_command *msg)
static int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev,
struct cros_ec_command *msg)
{
int ret;

Expand Down Expand Up @@ -541,7 +541,6 @@ int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev,

return ret;
}
EXPORT_SYMBOL(cros_ec_cmd_xfer);

/**
* cros_ec_cmd_xfer_status() - Send a command to the ChromeOS EC.
Expand Down
3 changes: 0 additions & 3 deletions include/linux/platform_data/cros_ec_proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,6 @@ int cros_ec_prepare_tx(struct cros_ec_device *ec_dev,
int cros_ec_check_result(struct cros_ec_device *ec_dev,
struct cros_ec_command *msg);

int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev,
struct cros_ec_command *msg);

int cros_ec_cmd_xfer_status(struct cros_ec_device *ec_dev,
struct cros_ec_command *msg);

Expand Down

0 comments on commit c1e18d4

Please sign in to comment.