[libcamera-devel] [PATCH 13/20] libcamera: ipu3: cio2: Mark sensor() as const
Jacopo Mondi
jacopo at jmondi.org
Tue Jul 14 12:42:05 CEST 2020
Mark the CIO2Device::sensor() method as const, and allow to call it
on const instances of the class.
Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
---
src/libcamera/pipeline/ipu3/cio2.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libcamera/pipeline/ipu3/cio2.h b/src/libcamera/pipeline/ipu3/cio2.h
index f905d97fa79d..0f75b0bc4572 100644
--- a/src/libcamera/pipeline/ipu3/cio2.h
+++ b/src/libcamera/pipeline/ipu3/cio2.h
@@ -49,7 +49,7 @@ public:
int start();
int stop();
- CameraSensor *sensor() { return sensor_; }
+ CameraSensor *sensor() const { return sensor_; }
int queueBuffer(Request *request, FrameBuffer *rawBuffer);
void tryReturnBuffer(FrameBuffer *buffer);
--
2.27.0
More information about the libcamera-devel
mailing list