From 1bfed95c1e9a2f97fb850809dcdc42e9515defc7 Mon Sep 17 00:00:00 2001
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Date: Mon, 14 Oct 2019 00:54:12 +0300
Subject: libcamera: v4l2_controls: Store a ControlRange in V4L2ControlInfoMap
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

V4L2ControlRange only offers a convenience constructor for a
ControlRange. Store the ControlRange instead of V4L2ControlRange in
V4L2ControlInfoMap to make the map less dependent on V4L2 types.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
---
 test/v4l2_videodevice/controls.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'test/v4l2_videodevice')

diff --git a/test/v4l2_videodevice/controls.cpp b/test/v4l2_videodevice/controls.cpp
index d4b7588e..182228f3 100644
--- a/test/v4l2_videodevice/controls.cpp
+++ b/test/v4l2_videodevice/controls.cpp
@@ -41,9 +41,9 @@ protected:
 			return TestFail;
 		}
 
-		const V4L2ControlRange &brightness = info.find(V4L2_CID_BRIGHTNESS)->second;
-		const V4L2ControlRange &contrast = info.find(V4L2_CID_CONTRAST)->second;
-		const V4L2ControlRange &saturation = info.find(V4L2_CID_SATURATION)->second;
+		const ControlRange &brightness = info.find(V4L2_CID_BRIGHTNESS)->second;
+		const ControlRange &contrast = info.find(V4L2_CID_CONTRAST)->second;
+		const ControlRange &saturation = info.find(V4L2_CID_SATURATION)->second;
 
 		/* Test getting controls. */
 		V4L2ControlList ctrls(info);
-- 
cgit v1.2.1