]> git.dujemihanovic.xyz Git - u-boot.git/commit
cros_ec: Fix an error code is cros_ec_get_sku_id()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 26 Jul 2023 06:58:34 +0000 (09:58 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 8 Aug 2023 21:05:43 +0000 (17:05 -0400)
commitd8ac619a172451f46efd421d280b639c224b3de6
tree886d54fa7b2477c67d2e495e4088a93a206a563f
parentcc05d352fbc2b5df7f3aa4bd8a0711df5a1efa68
cros_ec: Fix an error code is cros_ec_get_sku_id()

The ec_command_inptr() function returns negative error codes or
the number of bytes that it was able to read.  The cros_ec_get_sku_id()
function should return negative error codes.  Right now it returns
positive error codes or negative byte counts.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/misc/cros_ec.c