media: sun6i-csi: Move csi buffer definition to main header file
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Fri, 26 Aug 2022 18:32:12 +0000 (20:32 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 09:21:46 +0000 (11:21 +0200)
The buffer structure is a top-level definition, put it in the main header
to keep things tidy. No functional change intended.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Reviewed-by: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h
drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c

index 4bb4c3d..bab7056 100644 (file)
 
 #include <media/v4l2-device.h>
 #include <media/v4l2-fwnode.h>
+#include <media/videobuf2-v4l2.h>
 
 #include "sun6i_video.h"
 
 #define SUN6I_CSI_NAME         "sun6i-csi"
 #define SUN6I_CSI_DESCRIPTION  "Allwinner A31 CSI Device"
 
+struct sun6i_csi_buffer {
+       struct vb2_v4l2_buffer          v4l2_buffer;
+       struct list_head                list;
+
+       dma_addr_t                      dma_addr;
+       bool                            queued_to_csi;
+};
+
 /**
  * struct sun6i_csi_config - configs for sun6i csi
  * @pixelformat: v4l2 pixel format (V4L2_PIX_FMT_*)
index dd3748d..791583d 100644 (file)
 #define MAX_WIDTH      (4800)
 #define MAX_HEIGHT     (4800)
 
-struct sun6i_csi_buffer {
-       struct vb2_v4l2_buffer          v4l2_buffer;
-       struct list_head                list;
-
-       dma_addr_t                      dma_addr;
-       bool                            queued_to_csi;
-};
-
 /* Helpers */
 
 static struct v4l2_subdev *