Skip to content

Commit c1e18d4

Browse files
author
Enric Balletbo i Serra
committed
platform/chrome: cros_ec_proto: Do not export cros_ec_cmd_xfer()
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 <[email protected]>
1 parent 698d4d3 commit c1e18d4

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

drivers/platform/chrome/cros_ec_proto.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,8 @@ EXPORT_SYMBOL(cros_ec_query_all);
496496
*
497497
* Return: 0 on success or negative error code.
498498
*/
499-
int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev,
500-
struct cros_ec_command *msg)
499+
static int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev,
500+
struct cros_ec_command *msg)
501501
{
502502
int ret;
503503

@@ -541,7 +541,6 @@ int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev,
541541

542542
return ret;
543543
}
544-
EXPORT_SYMBOL(cros_ec_cmd_xfer);
545544

546545
/**
547546
* cros_ec_cmd_xfer_status() - Send a command to the ChromeOS EC.

include/linux/platform_data/cros_ec_proto.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,6 @@ int cros_ec_prepare_tx(struct cros_ec_device *ec_dev,
216216
int cros_ec_check_result(struct cros_ec_device *ec_dev,
217217
struct cros_ec_command *msg);
218218

219-
int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev,
220-
struct cros_ec_command *msg);
221-
222219
int cros_ec_cmd_xfer_status(struct cros_ec_device *ec_dev,
223220
struct cros_ec_command *msg);
224221

0 commit comments

Comments
 (0)