summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2021-04-23 18:36:53 +0900
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-04-26 16:40:13 +0300
commitc3ab0fa0ce7831f2c97133755ab7e4690e398f10 (patch)
tree806610b97ce0250401308a504420143a5467cfdd /include
parent3c0e99e0341559968361eea231a2b5e5dae6034d (diff)
libcamera: V4L2Device: Use Span in updateControls()
V4L2Device::updateControls() takes two arguments, raw array and its size, for the v4l2_ext_control values. This replaces it with libcamera::Span. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/v4l2_device.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libcamera/internal/v4l2_device.h b/include/libcamera/internal/v4l2_device.h
index d006bf68..087f07e7 100644
--- a/include/libcamera/internal/v4l2_device.h
+++ b/include/libcamera/internal/v4l2_device.h
@@ -14,6 +14,7 @@
#include <linux/videodev2.h>
#include <libcamera/signal.h>
+#include <libcamera/span.h>
#include "libcamera/internal/log.h"
#include "libcamera/internal/v4l2_controls.h"
@@ -55,8 +56,7 @@ protected:
private:
void listControls();
void updateControls(ControlList *ctrls,
- const struct v4l2_ext_control *v4l2Ctrls,
- unsigned int count);
+ Span<const v4l2_ext_control> v4l2Ctrls);
void eventAvailable(EventNotifier *notifier);