Skip to content

Commit 70a7ce2

Browse files
paulkocialkowskimchehab
authored andcommitted
media: sun6i-csi: Move csi buffer definition to main header file
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 <[email protected]> Reviewed-by: Maxime Ripard <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 7d13cf0 commit 70a7ce2

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,21 @@
1010

1111
#include <media/v4l2-device.h>
1212
#include <media/v4l2-fwnode.h>
13+
#include <media/videobuf2-v4l2.h>
1314

1415
#include "sun6i_video.h"
1516

1617
#define SUN6I_CSI_NAME "sun6i-csi"
1718
#define SUN6I_CSI_DESCRIPTION "Allwinner A31 CSI Device"
1819

20+
struct sun6i_csi_buffer {
21+
struct vb2_v4l2_buffer v4l2_buffer;
22+
struct list_head list;
23+
24+
dma_addr_t dma_addr;
25+
bool queued_to_csi;
26+
};
27+
1928
/**
2029
* struct sun6i_csi_config - configs for sun6i csi
2130
* @pixelformat: v4l2 pixel format (V4L2_PIX_FMT_*)

drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@
2323
#define MAX_WIDTH (4800)
2424
#define MAX_HEIGHT (4800)
2525

26-
struct sun6i_csi_buffer {
27-
struct vb2_v4l2_buffer v4l2_buffer;
28-
struct list_head list;
29-
30-
dma_addr_t dma_addr;
31-
bool queued_to_csi;
32-
};
33-
3426
/* Helpers */
3527

3628
static struct v4l2_subdev *

0 commit comments

Comments
 (0)