libcamera: pipeline: raspberrypi: Constify parameter to StaggeredCtrl::set()
The controls parameter of StaggeredCtrl::set(), passed by reference, is not modified by the function. Make it const. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
44a9b13f88
commit
44c4be5dba
2 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ bool StaggeredCtrl::set(std::initializer_list<std::pair<const uint32_t, int32_t>
|
|||
return true;
|
||||
}
|
||||
|
||||
bool StaggeredCtrl::set(ControlList &controls)
|
||||
bool StaggeredCtrl::set(const ControlList &controls)
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(lock_);
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ public:
|
|||
|
||||
bool set(uint32_t ctrl, int32_t value);
|
||||
bool set(std::initializer_list<std::pair<const uint32_t, int32_t>> ctrlList);
|
||||
bool set(ControlList &controls);
|
||||
bool set(const ControlList &controls);
|
||||
|
||||
int write();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue