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: NTomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: NBenson Leung <bleung@chromium.org> Signed-off-by: NBrian Norris <briannorris@chromium.org> Acked-by: NLee Jones <lee.jones@linaro.org> Tested-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
Showing
想要评论请 注册 或 登录