platform/chrome: cros_ec_proto: Update size arg types
cros_ec_cmd() takes 2 size arguments. Update them to be of the more appropriate type size_t. Suggested-by: Stephen Boyd <swboyd@chromium.org> Signed-off-by: Prashant Malani <pmalani@chromium.org> Reviewed-by: Stephen Boyd <swboyd@chromium.org> Reviewed-by: Guenter Roeck <groeck@chromium.org> Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org> Link: https://lore.kernel.org/r/20220606201825.763788-4-pmalani@chromium.org
This commit is contained in:
committed by
Tzung-Bi Shih
parent
b1d288d9c3
commit
f87e15fbf6
@@ -958,9 +958,9 @@ int cros_ec_cmd(struct cros_ec_device *ec_dev,
|
|||||||
unsigned int version,
|
unsigned int version,
|
||||||
int command,
|
int command,
|
||||||
void *outdata,
|
void *outdata,
|
||||||
int outsize,
|
size_t outsize,
|
||||||
void *indata,
|
void *indata,
|
||||||
int insize)
|
size_t insize)
|
||||||
{
|
{
|
||||||
struct cros_ec_command *msg;
|
struct cros_ec_command *msg;
|
||||||
int ret;
|
int ret;
|
||||||
|
|||||||
@@ -232,7 +232,7 @@ 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_get_sensor_count(struct cros_ec_dev *ec);
|
||||||
|
|
||||||
int cros_ec_cmd(struct cros_ec_device *ec_dev, unsigned int version, int command, void *outdata,
|
int cros_ec_cmd(struct cros_ec_device *ec_dev, unsigned int version, int command, void *outdata,
|
||||||
int outsize, void *indata, int insize);
|
size_t outsize, void *indata, size_t insize);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* cros_ec_get_time_ns() - Return time in ns.
|
* cros_ec_get_time_ns() - Return time in ns.
|
||||||
|
|||||||
Reference in New Issue
Block a user