Commit 11ca550c authored by Gjorgji Rosikopulos's avatar Gjorgji Rosikopulos Committed by Greg Kroah-Hartman

greybus: camera: Fix backword compatibility in configure streams

Configure streams ret code should be number of streams in
gb operation exported to HOST camera.
Until gb operation is migrated to new interface return
number of streams in ret code.
Signed-off-by: default avatarGjorgji Rosikopulos <grosikopulos@mm-sol.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 4068487c
......@@ -352,6 +352,8 @@ static int gb_camera_op_configure_streams(void *priv, unsigned int nstreams,
streams[i].pixel_code =
gb_camera_gb_to_mbus(gb_streams[i].format);
}
/* For backward compatibility return number of streams in ret code */
ret = nstreams;
done:
kfree(gb_streams);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment