summaryrefslogtreecommitdiff
path: root/drivers/platform/chrome/cros_ec_proto_test.c
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@kernel.org>2022-06-09 08:49:55 +0000
committerTzung-Bi Shih <tzungbi@kernel.org>2022-06-10 02:31:44 +0000
commitd65da5f9bb0a5b6f2115bc0e5fcf65c0867fef17 (patch)
treefc66ef859e32d85ed172073b7dd15a1e6bee73cf /drivers/platform/chrome/cros_ec_proto_test.c
parentaac29b04dc3fdc5b95bca31413d90dbe8c1ae33d (diff)
platform/chrome: cros_ec_proto: return 0 on getting wake mask success
cros_ec_get_host_event_wake_mask() used to return value from send_command() which is number of bytes for input payload on success (i.e. sizeof(struct ec_response_host_event_mask)). However, the callers don't need to know how many bytes are available. Don't return number of available bytes. Instead, return 0 on success; otherwise, negative integers on error. Reviewed-by: Guenter Roeck <groeck@chromium.org> Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org> Link: https://lore.kernel.org/r/20220609084957.3684698-20-tzungbi@kernel.org
Diffstat (limited to 'drivers/platform/chrome/cros_ec_proto_test.c')
0 files changed, 0 insertions, 0 deletions