aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMichael Auchter <michael.auchter@ni.com>2019-12-09 20:27:31 +0000
committerSimon Glass <sjg@chromium.org>2019-12-10 21:11:31 -0700
commitb4f98b3b16ec513f7fa6b97ec49792a5e99ec165 (patch)
tree788b127af58613bb3f0671f88a40bf4e627729bd /drivers
parentd08c38c32f64498946230059bd4ec1431c23476a (diff)
downloadu-boot-b4f98b3b16ec513f7fa6b97ec49792a5e99ec165.zip
u-boot-b4f98b3b16ec513f7fa6b97ec49792a5e99ec165.tar.gz
u-boot-b4f98b3b16ec513f7fa6b97ec49792a5e99ec165.tar.bz2
cros_ec: use uint instead of uint8_t for cmd param
Chromium EC commands can be up to 16-bits, so using a uint8_t here can cause truncation. Update to use a uint instead. It looks like this should likely have been done as a part of 9fea76f5d30264dc08ac591a7a89427b8441555b, but this function was skipped for some reason. Signed-off-by: Michael Auchter <michael.auchter@ni.com> Cc: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/cros_ec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c
index 382f826..fa9984f 100644
--- a/drivers/misc/cros_ec.c
+++ b/drivers/misc/cros_ec.c
@@ -313,7 +313,7 @@ static int send_command(struct cros_ec_dev *dev, uint cmd, int cmd_version,
* @param din_len Maximum size of response in bytes
* @return number of bytes in response, or -ve on error
*/
-static int ec_command_inptr(struct udevice *dev, uint8_t cmd,
+static int ec_command_inptr(struct udevice *dev, uint cmd,
int cmd_version, const void *dout, int dout_len,
uint8_t **dinp, int din_len)
{