[v3,03/18] libcamera: ipu3: Replace wrong include
diff mbox series

Message ID 20240902154212.1281257-4-mzamazal@redhat.com
State Accepted
Headers show
Series
  • Remove unused includes
Related show

Commit Message

Milan Zamazal Sept. 2, 2024, 3:41 p.m. UTC
v4l2_videodevice.h is not used but logging is imported through it.
Remove the unused include and include log.h instead.

Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
---
 src/libcamera/pipeline/ipu3/frames.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Laurent Pinchart Sept. 2, 2024, 6:31 p.m. UTC | #1
Hi Milan,

Thank you for the patch.

On Mon, Sep 02, 2024 at 05:41:56PM +0200, Milan Zamazal wrote:
> v4l2_videodevice.h is not used but logging is imported through it.
> Remove the unused include and include log.h instead.
> 
> Signed-off-by: Milan Zamazal <mzamazal@redhat.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  src/libcamera/pipeline/ipu3/frames.cpp | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/libcamera/pipeline/ipu3/frames.cpp b/src/libcamera/pipeline/ipu3/frames.cpp
> index 88eb9d05..bc0526a7 100644
> --- a/src/libcamera/pipeline/ipu3/frames.cpp
> +++ b/src/libcamera/pipeline/ipu3/frames.cpp
> @@ -7,12 +7,13 @@
>  
>  #include "frames.h"
>  
> +#include <libcamera/base/log.h>
> +
>  #include <libcamera/framebuffer.h>
>  #include <libcamera/request.h>
>  
>  #include "libcamera/internal/framebuffer.h"
>  #include "libcamera/internal/pipeline_handler.h"
> -#include "libcamera/internal/v4l2_videodevice.h"
>  
>  namespace libcamera {
>

Patch
diff mbox series

diff --git a/src/libcamera/pipeline/ipu3/frames.cpp b/src/libcamera/pipeline/ipu3/frames.cpp
index 88eb9d05..bc0526a7 100644
--- a/src/libcamera/pipeline/ipu3/frames.cpp
+++ b/src/libcamera/pipeline/ipu3/frames.cpp
@@ -7,12 +7,13 @@ 
 
 #include "frames.h"
 
+#include <libcamera/base/log.h>
+
 #include <libcamera/framebuffer.h>
 #include <libcamera/request.h>
 
 #include "libcamera/internal/framebuffer.h"
 #include "libcamera/internal/pipeline_handler.h"
-#include "libcamera/internal/v4l2_videodevice.h"
 
 namespace libcamera {