summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo.mondi@linaro.org>2016-06-30 09:18:00 -0500
committerAlex Elder <elder@linaro.org>2016-07-05 21:18:05 -0500
commit80b3982b8d1ca463963b9d2d406098c18add2baf (patch)
tree0e0c54c2d8c90849a4936c85b7da30b647a6126f /drivers
parent36ab1108b60eb649c7c0f0653f854afc1234cfcb (diff)
greybus: camera: Fix size of configure_streams(0)
When APB-A CSI-Tx configuration fails, it is necessary to unconfigure the camera module issuesing a 0 stream configuration request. Fix size of request and response to avoid Greybus core complain about Response size differences. Testing Done: Triggering the error condition after APB-A CSI-tx configuration does not make Greybus core complain anymore Signed-off-by: Jacopo Mondi <jacopo.mondi@linaro.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@linaro.org> Signed-off-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/greybus/camera.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c
index 41891b24ef05..ce0ff759f3ce 100644
--- a/drivers/staging/greybus/camera.c
+++ b/drivers/staging/greybus/camera.c
@@ -468,7 +468,8 @@ static int gb_camera_configure_streams(struct gb_camera *gcam,
memset(req, 0, sizeof(*req));
gb_operation_sync(gcam->connection,
GB_CAMERA_TYPE_CONFIGURE_STREAMS,
- req, req_size, resp, resp_size);
+ req, sizeof(*req),
+ resp, sizeof(*resp));
*flags = 0;
*num_streams = 0;
goto done;