cros_ec: Don't return error when checking command version
authorThierry Escande <thierry.escande@collabora.com>
Tue, 14 Feb 2017 19:58:00 +0000 (20:58 +0100)
committerBenson Leung <bleung@chromium.org>
Tue, 27 Jun 2017 15:22:28 +0000 (08:22 -0700)
commita27b8f31cb7929bfb8dc6ca3e6b7a0a39609d7f3
tree7bf631acf0be05fc96e2d89202851733fcea4702
parent995c0ec9a81f9e4e75f280f095534f4ed1a9ea9d
cros_ec: Don't return error when checking command version

With this patch, cros_ec_query_all() does not return an error if it
fails to check for MKBP events support. Instead, the EC device structure
indicates that it does not support MKBP events (mkbp_event_supported
field) and cros_ec_query_all() returns 0.

Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/cros_ec_proto.c