]> git.karo-electronics.de Git - linux-beck.git/commit
mfd: cros_ec: Add cros_ec_cmd_xfer_status() helper
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 15 Jul 2016 23:28:41 +0000 (16:28 -0700)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 25 Jul 2016 08:32:23 +0000 (10:32 +0200)
commit9798ac6d32c1a32d6d92d853ff507d2d39c4300c
tree5616b9a6aad39550b0dd658260d2dc63cbca1dc7
parent1a695a905c18548062509178b98bc91e67510864
mfd: cros_ec: Add cros_ec_cmd_xfer_status() helper

So that callers of cros_ec_cmd_xfer() don't have to repeat boilerplate
code when checking for errors from the EC side.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Brian Norris <briannorris@chromium.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/platform/chrome/cros_ec_proto.c
include/linux/mfd/cros_ec.h