greybus: operation: fix broken response error messages
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 26 Jul 2016 15:11:28 +0000 (17:11 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 26 Jul 2016 21:53:19 +0000 (14:53 -0700)
commitdfcba8626f55fe5d6ba6e2847178cbf629740773
tree6230866ba482822c7856dd45f941f8236e31914b
parent43c85a09b12cd3e782ae237be9903fef4559cc0d
greybus: operation: fix broken response error messages

The operation type included in the error message printed for malformed
responses has never been correct. An uninitialised buffer was used to
retrieve the type, resulting in the type always being reported as 0.

Fix this by passing a properly aligned header to the response handler,
and drop the now redundant id and result parameters.

Fixes: cb0ef0c019ab ("operation: print message type on errors")
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/operation.c