mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
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:
parent
b1d288d9c3
commit
f87e15fbf6
2 changed files with 3 additions and 3 deletions
|
@ -958,9 +958,9 @@ int cros_ec_cmd(struct cros_ec_device *ec_dev,
|
|||
unsigned int version,
|
||||
int command,
|
||||
void *outdata,
|
||||
int outsize,
|
||||
size_t outsize,
|
||||
void *indata,
|
||||
int insize)
|
||||
size_t insize)
|
||||
{
|
||||
struct cros_ec_command *msg;
|
||||
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_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.
|
||||
|
|
Loading…
Reference in a new issue