summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2022-03-09 16:22:59 +0100
committerJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2022-03-11 11:11:36 +0100
commited13310b1fe4c531d6a830c69fbbe0b544d805bd (patch)
tree527504272808624d1ee133ea5be5715d057312cf /src
parentcdad084a913540c15050dd0a5d6b10f612b2730b (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/camera_lens.cpp2
-rw-r--r--src/libcamera/pipeline/ipu3/ipu3.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libcamera/camera_lens.cpp b/src/libcamera/camera_lens.cpp
index 189cb025..810fcffa 100644
--- a/src/libcamera/camera_lens.cpp
+++ b/src/libcamera/camera_lens.cpp
@@ -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));
diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
index 6c5617cd..03259d0e 100644
--- a/src/libcamera/pipeline/ipu3/ipu3.cpp
+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
@@ -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;
}