platform/chrome: cros_usbpd_notify: Move ec_command()

cros_ec_command() can be used by other modules too. So, move it to a
common location and export it.

This patch does not introduce any functional changes.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Link: https://lore.kernel.org/r/20210930022403.3358070-3-pmalani@chromium.org
This commit is contained in:
Prashant Malani
2021-09-29 19:23:50 -07:00
committed by Enric Balletbo i Serra
parent 67ea0239fb
commit 7101c83950
3 changed files with 48 additions and 44 deletions

View File

@@ -231,6 +231,9 @@ bool cros_ec_check_features(struct cros_ec_dev *ec, int feature);
int cros_ec_get_sensor_count(struct cros_ec_dev *ec);
int cros_ec_command(struct cros_ec_device *ec_dev, int command, uint8_t *outdata, int outsize,
uint8_t *indata, int insize);
/**
* cros_ec_get_time_ns() - Return time in ns.
*