mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 14:56:54 -04:00
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: Gjorgji Rosikopulos <grosikopulos@mm-sol.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4068487ce3
commit
11ca550c22
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user