diff options
| author | 2020-02-20 16:58:57 +0100 | |
|---|---|---|
| committer | 2020-03-02 11:04:05 +0100 | |
| commit | cff38b0c58fc738ad559582c13878aa882da6a56 (patch) | |
| tree | daf319c1b55020cedd6c84e7a056679b32050f9b /include/uapi/git:/ssh:/git@git.zx2c4.com | |
| parent | platform/chrome: cros_ec_sysfs: Use cros_ec_cmd_xfer_status helper (diff) | |
| download | linux-dev-cff38b0c58fc738ad559582c13878aa882da6a56.tar.xz linux-dev-cff38b0c58fc738ad559582c13878aa882da6a56.zip | |
platform/chrome: cros_ec_lightbar: Use cros_ec_cmd_xfer_status helper
This patch makes use of cros_ec_cmd_xfer_status() instead of
cros_ec_cmd_xfer(). It allows us to remove some redundand code. In this
case, though, we are changing a bit the behaviour because of returning
-EINVAL on protocol error we propagate the error return for
cros_ec_cmd_xfer_status() function, but I think it will be fine, even
more clear as we don't mask the Linux error code.
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Tested-by: Prashant Malani <pmalani@chromium.org>
Diffstat (limited to 'include/uapi/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
