[PATCH] ipa: rpi: Make monoSensor() accessor const
Kieran Bingham
kieran.bingham at ideasonboard.com
Mon May 20 11:59:18 CEST 2024
Quoting Laurent Pinchart (2024-05-19 18:56:50)
> The ipa::RPi::IpaBase::monoSensor() function doesn't modify the class.
> Make it const.
>
> Fixes: 2031e2f29014 ("ipa: rpi: Add accessor function for monoSensor_")
> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
> ---
> src/ipa/rpi/common/ipa_base.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/ipa/rpi/common/ipa_base.h b/src/ipa/rpi/common/ipa_base.h
> index a95cda1ffe51..1a811beb31f2 100644
> --- a/src/ipa/rpi/common/ipa_base.h
> +++ b/src/ipa/rpi/common/ipa_base.h
> @@ -49,7 +49,7 @@ public:
> void processStats(const ProcessParams ¶ms) override;
>
> protected:
> - bool monoSensor()
> + bool monoSensor() const
> {
> return monoSensor_;
> }
>
> base-commit: aee16c06913422a0ac84ee3217f87a9795e3c2d9
> --
> Regards,
>
> Laurent Pinchart
>
More information about the libcamera-devel
mailing list