*/
int cros_ec_command(struct cros_ec_device *ec_dev,
int command,
- uint8_t *outdata,
+ void *outdata,
int outsize,
- uint8_t *indata,
+ void *indata,
int insize)
{
struct cros_ec_command *msg;
/* Check for PD host events on EC. */
ret = cros_ec_command(ec_dev, EC_CMD_PD_HOST_EVENT_STATUS,
- NULL, 0, (uint8_t *)&host_event_status, sizeof(host_event_status));
+ NULL, 0, &host_event_status, sizeof(host_event_status));
if (ret < 0) {
dev_warn(dev, "Can't get host event status (err: %d)\n", ret);
goto send_notify;
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.