libcamera: controls: Rename ControlInfo to ControlRange

The ControlInfo class stores a range of valid values for a control. Its
name is vague, as "info" has multiple meanings. Rename it to
ControlRange.

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 16:22:24 +03:00
parent f1ab117e81
commit ace50f75a4
4 changed files with 26 additions and 26 deletions

View file

@ -95,11 +95,11 @@ private:
Control &operator=(const Control &) = delete;
};
class ControlInfo
class ControlRange
{
public:
explicit ControlInfo(const ControlValue &min = 0,
const ControlValue &max = 0);
explicit ControlRange(const ControlValue &min = 0,
const ControlValue &max = 0);
const ControlValue &min() const { return min_; }
const ControlValue &max() const { return max_; }
@ -111,7 +111,7 @@ private:
ControlValue max_;
};
using ControlInfoMap = std::unordered_map<const ControlId *, ControlInfo>;
using ControlInfoMap = std::unordered_map<const ControlId *, ControlRange>;
class ControlList
{