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

2016-03-14 Thread Benson Leung
Thanks! On Mon, Mar 14, 2016 at 8:44 AM, Tomeu Vizoso wrote: > 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

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

2016-03-14 Thread Benson Leung
Thanks! On Mon, Mar 14, 2016 at 8:44 AM, Tomeu Vizoso wrote: > 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 v5: > - Check explicitly for

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

2016-03-14 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 --- Changes in v5: - Check explicitly for !EC_RES_SUCCESS as suggested by Benson Leung. Changes in v4: None Changes in

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

2016-03-14 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 --- Changes in v5: - Check explicitly for !EC_RES_SUCCESS as suggested by Benson Leung. Changes in v4: None Changes in v3: None Changes in v2: None