aboutsummaryrefslogtreecommitdiff
path: root/drivers/platform/chrome/cros_ec_proto_test.c
diff options
context:
space:
mode:
authorTzung-Bi Shih <[email protected]>2022-06-09 08:49:52 +0000
committerTzung-Bi Shih <[email protected]>2022-06-10 02:31:44 +0000
commitec513489933528e179bc6f98d47e6ea86c271a22 (patch)
tree28490e5fb8e210a0b0e2e42efba740ae50c6453d /drivers/platform/chrome/cros_ec_proto_test.c
parenta8f77c63baece8c47599bc418d3c2c138ca7efaf (diff)
platform/chrome: cros_ec_proto: check `msg->result` in getting cmd mask
cros_ec_get_host_command_version_mask() should check if EC wasn't happy by checking `msg->result`. Use cros_ec_map_error() and return the error code if any. Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Tzung-Bi Shih <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/platform/chrome/cros_ec_proto_test.c')
0 files changed, 0 insertions, 0 deletions