[PATCH] cros_ec: use uint instead of uint8_t for cmd param
Simon Glass
sjg at chromium.org
Mon Dec 9 22:34:33 CET 2019
On Mon, 9 Dec 2019 at 13:27, Michael Auchter <michael.auchter at ni.com> wrote:
>
> 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 at ni.com>
> Cc: Simon Glass <sjg at chromium.org>
> ---
> drivers/misc/cros_ec.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list