staging: media: tegra-video: move private struct declaration to C file
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Tue, 18 Apr 2023 08:00:42 +0000 (10:00 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 25 May 2023 11:04:47 +0000 (13:04 +0200)
struct tegra_vi_graph_entity is an internal implementation detail of the VI
module. Move its declaration from vi.h to vi.c.

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/staging/media/tegra-video/vi.c
drivers/staging/media/tegra-video/vi.h

index 8deeeee..db0f0e4 100644 (file)
 
 #define MAX_CID_CONTROLS               1
 
+/**
+ * struct tegra_vi_graph_entity - Entity in the video graph
+ *
+ * @asd: subdev asynchronous registration information
+ * @entity: media entity from the corresponding V4L2 subdev
+ * @subdev: V4L2 subdev
+ */
+struct tegra_vi_graph_entity {
+       struct v4l2_async_subdev asd;
+       struct media_entity *entity;
+       struct v4l2_subdev *subdev;
+};
+
 static const struct tegra_video_format tegra_default_format = {
        .img_dt = TEGRA_IMAGE_DT_RAW10,
        .bit_width = 10,
index 5396bf5..9959cbe 100644 (file)
@@ -98,19 +98,6 @@ struct tegra_vi {
        struct list_head vi_chans;
 };
 
-/**
- * struct tegra_vi_graph_entity - Entity in the video graph
- *
- * @asd: subdev asynchronous registration information
- * @entity: media entity from the corresponding V4L2 subdev
- * @subdev: V4L2 subdev
- */
-struct tegra_vi_graph_entity {
-       struct v4l2_async_subdev asd;
-       struct media_entity *entity;
-       struct v4l2_subdev *subdev;
-};
-
 /**
  * struct tegra_vi_channel - Tegra video channel
  *