]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: cros_ec_lpc - Use existing function to check EC result
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Mon, 22 Jun 2015 06:27:18 +0000 (08:27 +0200)
committerOlof Johansson <olof@lixom.net>
Wed, 7 Oct 2015 21:34:26 +0000 (14:34 -0700)
commit93afc80ddb4bcd1369caa50a29c221ec159c6d34
tree8c7fae1b524f198f5d66dc405f654bb3f773a12d
parent2b2bae6b1d77884ee394c95438341cf847ea3502
platform/chrome: cros_ec_lpc - Use existing function to check EC result

Commit 79d7417c7057 ("mfd: cros_ec: Check result code from EC messages")
added a common cros_ec_check_result() function that can be used to check
the ec_msg->result for errors and warns about them.

Use the existing function instead of duplicating same check in the driver.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Tested-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/platform/chrome/cros_ec_lpc.c