summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/vsp1/vsp1_wpf.c
diff options
context:
space:
mode:
authorLaurent Pinchart2015-11-22 16:37:45 +0100
committerMauro Carvalho Chehab2016-04-13 23:56:53 +0200
commitc6c8efb656ff213a4d32776c12454b9c9f0c14e4 (patch)
tree7dcb9ec53f6ad5e793d5be4351e9c74e5fee4d6d /drivers/media/platform/vsp1/vsp1_wpf.c
parent[media] v4l: vsp1: Create a new configure operation to setup modules (diff)
downloadkernel-qcow2-linux-c6c8efb656ff213a4d32776c12454b9c9f0c14e4.tar.gz
kernel-qcow2-linux-c6c8efb656ff213a4d32776c12454b9c9f0c14e4.tar.xz
kernel-qcow2-linux-c6c8efb656ff213a4d32776c12454b9c9f0c14e4.zip
[media] v4l: vsp1: Merge RPF and WPF pad ops structures
The two structures are identical, merge them and move the result to vsp1_rwpf.c. All rwpf pad operations can now be declared static. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/platform/vsp1/vsp1_wpf.c')
-rw-r--r--drivers/media/platform/vsp1/vsp1_wpf.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/media/platform/vsp1/vsp1_wpf.c b/drivers/media/platform/vsp1/vsp1_wpf.c
index ccf1f960c46a..80a87f39f06c 100644
--- a/drivers/media/platform/vsp1/vsp1_wpf.c
+++ b/drivers/media/platform/vsp1/vsp1_wpf.c
@@ -63,19 +63,9 @@ static struct v4l2_subdev_video_ops wpf_video_ops = {
.s_stream = wpf_s_stream,
};
-static struct v4l2_subdev_pad_ops wpf_pad_ops = {
- .init_cfg = vsp1_entity_init_cfg,
- .enum_mbus_code = vsp1_rwpf_enum_mbus_code,
- .enum_frame_size = vsp1_rwpf_enum_frame_size,
- .get_fmt = vsp1_rwpf_get_format,
- .set_fmt = vsp1_rwpf_set_format,
- .get_selection = vsp1_rwpf_get_selection,
- .set_selection = vsp1_rwpf_set_selection,
-};
-
static struct v4l2_subdev_ops wpf_ops = {
.video = &wpf_video_ops,
- .pad = &wpf_pad_ops,
+ .pad = &vsp1_rwpf_pad_ops,
};
/* -----------------------------------------------------------------------------