platform/chrome: cros_ec_proto: Make data pointers void

Convert the input and output data pointers for cros_ec_command() to
void pointers so that the callers don't have to cast their custom
structs to uint8_t *.

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-4-pmalani@chromium.org
This commit is contained in:
Prashant Malani 2021-09-29 19:23:52 -07:00 committed by Enric Balletbo i Serra
parent 7101c83950
commit 5d122256f4
3 changed files with 5 additions and 5 deletions

View file

@ -231,8 +231,8 @@ 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);
int cros_ec_command(struct cros_ec_device *ec_dev, int command, void *outdata, int outsize,
void *indata, int insize);
/**
* cros_ec_get_time_ns() - Return time in ns.