[libcamera-devel,v3,1/4] pipeline: raspberrypi: Add const qualifer in isRaw()
diff mbox series

Message ID 20211118164216.2669449-2-naush@raspberrypi.com
State Accepted
Commit e0b870e615dda0b43e2b5778cfd797ba19aa4ba5
Headers show
Series
  • raspberrypi: Rework the internal buffer allocation scheme
Related show

Commit Message

Naushir Patuck Nov. 18, 2021, 4:42 p.m. UTC
This function does not modify the pixFmt parameter, so use a const qualifier.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 src/libcamera/pipeline/raspberrypi/raspberrypi.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
index 5e1f227398a9..11d3c2b120dd 100644
--- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
+++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
@@ -96,7 +96,7 @@  V4L2DeviceFormat toV4L2DeviceFormat(const V4L2SubdeviceFormat &format,
 	return deviceFormat;
 }
 
-bool isRaw(PixelFormat &pixFmt)
+bool isRaw(const PixelFormat &pixFmt)
 {
 	/*
 	 * The isRaw test might be redundant right now the pipeline handler only