libcamera: v4l2_controls: Use the ControlRange class for control info

Use the ControlRange class to express the range of a V4L2 control,
replacing the open-coded minimum and maximum fields in the
V4L2ControlInfo class.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
Laurent Pinchart
2019-09-28 17:36:05 +03:00
parent 186ae04c0c
commit 28535ea1a2
4 changed files with 14 additions and 17 deletions
+1 -1
View File
@@ -437,7 +437,7 @@ int VimcCameraData::init(MediaDevice *media)
controlInfo_.emplace(std::piecewise_construct,
std::forward_as_tuple(id),
std::forward_as_tuple(info.min(), info.max()));
std::forward_as_tuple(info.range()));
}
return 0;