[PATCH v2 09/20] libcamera: uvcvideo: Formatting improvement
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Sat Aug 31 02:09:38 CEST 2024
On Fri, Aug 30, 2024 at 05:27:06PM +0200, Milan Zamazal wrote:
> The LSP autoformatter doesn't like some of the current formatting, let's
> make it happy.
>
> Signed-off-by: Milan Zamazal <mzamazal at redhat.com>
> ---
> src/libcamera/pipeline/uvcvideo/uvcvideo.cpp | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp b/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp
> index 133ff977..706457c0 100644
> --- a/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp
> +++ b/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp
> @@ -304,8 +304,8 @@ int PipelineHandlerUVC::processControl(ControlList *controls, unsigned int id,
>
> case V4L2_CID_EXPOSURE_AUTO: {
> int32_t ivalue = value.get<bool>()
> - ? V4L2_EXPOSURE_APERTURE_PRIORITY
> - : V4L2_EXPOSURE_MANUAL;
> + ? V4L2_EXPOSURE_APERTURE_PRIORITY
> + : V4L2_EXPOSURE_MANUAL;
This hinders readability in my opinion.
> controls->set(V4L2_CID_EXPOSURE_AUTO, ivalue);
> break;
> }
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list