platform/chrome: cros_ec_proto: Do not export cros_ec_cmd_xfer()
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Mon, 15 Jun 2020 20:35:21 +0000 (22:35 +0200)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Thu, 23 Jul 2020 08:12:23 +0000 (10:12 +0200)
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>
drivers/platform/chrome/cros_ec_proto.c
include/linux/platform_data/cros_ec_proto.h

index 3e745e0fe092cba1b253634f0d5793571ed9fa0b..11a2db7cd0f761dfd1db367ae1e19cf39e207c60 100644 (file)
@@ -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;
 
@@ -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.
index 3832433266762deae19c42b2704effbce1ff1c74..4a415ae851ef0891538e0ab3a3f93d08e818d3ac 100644 (file)
@@ -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);