From 6dc91f22f9bb2aafeee2f7c5df53a02a37acc3a0 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 9 Jun 2018 02:57:26 +0300 Subject: uvc: Initialize the maxsize field internally The uvc_device maxsize field is initialized in stream.c, requiring access to the uvc_device internals. Move its initialization to uvc.c. Signed-off-by: Laurent Pinchart --- stream.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'stream.c') diff --git a/stream.c b/stream.c index d7d061a..13b8493 100644 --- a/stream.c +++ b/stream.c @@ -230,11 +230,6 @@ void uvc_stream_delete(struct uvc_stream *stream) void uvc_stream_init_uvc(struct uvc_stream *stream, struct uvc_function_config *fc) { - /* - * FIXME: The maximum size should be specified per format and frame. - */ - stream->uvc->maxsize = 0; - uvc_set_config(stream->uvc, fc); uvc_events_init(stream->uvc, stream->events); } -- cgit v1.2.3