libcamera: camera: Constify controls argument to start()

The ControlList passed to the Camera::start() function isn't modified.
Make it const.

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
2021-02-12 04:37:16 +02:00
parent f73c505f71
commit 79991a9903
9 changed files with 15 additions and 15 deletions

View File

@@ -1018,7 +1018,7 @@ int Camera::queueRequest(Request *request)
* \retval -ENODEV The camera has been disconnected from the system
* \retval -EACCES The camera is not in a state where it can be started
*/
int Camera::start(ControlList *controls)
int Camera::start(const ControlList *controls)
{
Private *const d = LIBCAMERA_D_PTR();