commit | 8fb3cf1666506b1259d2742ab8e63b93700be95d | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@linaro.org> | Wed Jul 26 09:58:34 2023 +0300 |
committer | Tom Rini <trini@konsulko.com> | Tue Aug 08 17:05:43 2023 -0400 |
tree | 886d54fa7b2477c67d2e495e4088a93a206a563f | |
parent | e310e0081ef4005543ef2af26563abafaa7fd8c9 [diff] |
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>