[PATCH v6 2/6] mfd: cros_ec: Add cros_ec_cmd_xfer_status helper

2016-03-19 Thread Tomeu Vizoso
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 Reviewed-by: Benson Leung --- Changes in v6: None Changes in v5: - Check explicitly for

[PATCH v6 2/6] mfd: cros_ec: Add cros_ec_cmd_xfer_status helper

2016-03-19 Thread Tomeu Vizoso
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 Reviewed-by: Benson Leung --- Changes in v6: None Changes in v5: - Check explicitly for !EC_RES_SUCCESS as suggested by Benson Leung. Changes in v4: