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

2016-03-02 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 v3: None Changes in v2: None drivers/platform/chrome/cros_ec_proto.c | 14 ++

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

2016-03-02 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 v3: None Changes in v2: None drivers/platform/chrome/cros_ec_proto.c | 14 ++ include/linux/mfd/cros_ec.h |