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 --- uvc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'uvc.c') diff --git a/uvc.c b/uvc.c index fc28482..9d425fd 100644 --- a/uvc.c +++ b/uvc.c @@ -357,6 +357,8 @@ void uvc_events_init(struct uvc_device *dev, struct events *events) void uvc_set_config(struct uvc_device *dev, struct uvc_function_config *fc) { + /* FIXME: The maximum size should be specified per format and frame. */ + dev->maxsize = 0; dev->fc = fc; } -- cgit v1.2.3