libcamera: Fix typo in a function name for camera lens class
The CameraLens class implements a function named "setFocusPostion". There is a typo here, fix it. Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -24,7 +24,7 @@ public:
|
||||
~CameraLens();
|
||||
|
||||
int init();
|
||||
int setFocusPostion(int32_t position);
|
||||
int setFocusPosition(int32_t position);
|
||||
|
||||
const std::string &model() const { return model_; }
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ int CameraLens::init()
|
||||
*
|
||||
* \return 0 on success or -EINVAL otherwise
|
||||
*/
|
||||
int CameraLens::setFocusPostion(int32_t position)
|
||||
int CameraLens::setFocusPosition(int32_t position)
|
||||
{
|
||||
ControlList lensCtrls(subdev_->controls());
|
||||
lensCtrls.set(V4L2_CID_FOCUS_ABSOLUTE, static_cast<int32_t>(position));
|
||||
|
||||
@@ -1267,7 +1267,7 @@ void IPU3CameraData::queueFrameAction(unsigned int id,
|
||||
const ControlValue &focusValue =
|
||||
lensControls.get(V4L2_CID_FOCUS_ABSOLUTE);
|
||||
|
||||
focusLens->setFocusPostion(focusValue.get<int32_t>());
|
||||
focusLens->setFocusPosition(focusValue.get<int32_t>());
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user