Skip to content

Commit ab2e8d5

Browse files
paulkocialkowskimchehab
authored andcommitted
media: sun6i-csi: Tidy up video code
Some code cleanups, renames, variable lowerings and moving things around for better organization. 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 cad7f35 commit ab2e8d5

File tree

3 files changed

+285
-246
lines changed

3 files changed

+285
-246
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ static int sun6i_csi_link_entity(struct sun6i_csi_device *csi_dev,
595595

596596
src_pad_index = ret;
597597

598-
sink = &csi_dev->video.vdev.entity;
598+
sink = &csi_dev->video.video_dev.entity;
599599
sink_pad = &csi_dev->video.pad;
600600

601601
dev_dbg(csi_dev->dev, "creating %s:%u -> %s:%u link\n",
@@ -706,7 +706,7 @@ static int sun6i_csi_v4l2_setup(struct sun6i_csi_device *csi_dev)
706706

707707
/* Video */
708708

709-
ret = sun6i_video_init(&csi_dev->video, csi_dev, SUN6I_CSI_NAME);
709+
ret = sun6i_video_setup(&csi_dev->video, csi_dev);
710710
if (ret)
711711
goto error_v4l2_device;
712712

0 commit comments

Comments
 (0)