diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2014-04-28 15:53:01 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-05-24 16:11:26 -0400 |
commit | 8774bed9ce832d8d9ccb79e92800b808aa2d2ad2 (patch) | |
tree | 30756d116a47317fff754ca0f976cf5134033756 /include/media | |
parent | 85ada737b9d9ede7dbb17e831d3b4bb187dc1915 (diff) |
[media] v4l: subdev: Move [gs]_std operation to video ops
The g_std and s_std operations are video-related, move them to the video
ops where they belong.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/v4l2-subdev.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h index 9205df13f3a5..dd5bbbe2d56a 100644 --- a/include/media/v4l2-subdev.h +++ b/include/media/v4l2-subdev.h | |||
@@ -159,8 +159,6 @@ struct v4l2_subdev_core_ops { | |||
159 | int (*s_ext_ctrls)(struct v4l2_subdev *sd, struct v4l2_ext_controls *ctrls); | 159 | int (*s_ext_ctrls)(struct v4l2_subdev *sd, struct v4l2_ext_controls *ctrls); |
160 | int (*try_ext_ctrls)(struct v4l2_subdev *sd, struct v4l2_ext_controls *ctrls); | 160 | int (*try_ext_ctrls)(struct v4l2_subdev *sd, struct v4l2_ext_controls *ctrls); |
161 | int (*querymenu)(struct v4l2_subdev *sd, struct v4l2_querymenu *qm); | 161 | int (*querymenu)(struct v4l2_subdev *sd, struct v4l2_querymenu *qm); |
162 | int (*g_std)(struct v4l2_subdev *sd, v4l2_std_id *norm); | ||
163 | int (*s_std)(struct v4l2_subdev *sd, v4l2_std_id norm); | ||
164 | long (*ioctl)(struct v4l2_subdev *sd, unsigned int cmd, void *arg); | 162 | long (*ioctl)(struct v4l2_subdev *sd, unsigned int cmd, void *arg); |
165 | #ifdef CONFIG_COMPAT | 163 | #ifdef CONFIG_COMPAT |
166 | long (*compat_ioctl32)(struct v4l2_subdev *sd, unsigned int cmd, | 164 | long (*compat_ioctl32)(struct v4l2_subdev *sd, unsigned int cmd, |
@@ -316,6 +314,8 @@ struct v4l2_mbus_frame_desc { | |||
316 | struct v4l2_subdev_video_ops { | 314 | struct v4l2_subdev_video_ops { |
317 | int (*s_routing)(struct v4l2_subdev *sd, u32 input, u32 output, u32 config); | 315 | int (*s_routing)(struct v4l2_subdev *sd, u32 input, u32 output, u32 config); |
318 | int (*s_crystal_freq)(struct v4l2_subdev *sd, u32 freq, u32 flags); | 316 | int (*s_crystal_freq)(struct v4l2_subdev *sd, u32 freq, u32 flags); |
317 | int (*g_std)(struct v4l2_subdev *sd, v4l2_std_id *norm); | ||
318 | int (*s_std)(struct v4l2_subdev *sd, v4l2_std_id norm); | ||
319 | int (*s_std_output)(struct v4l2_subdev *sd, v4l2_std_id std); | 319 | int (*s_std_output)(struct v4l2_subdev *sd, v4l2_std_id std); |
320 | int (*g_std_output)(struct v4l2_subdev *sd, v4l2_std_id *std); | 320 | int (*g_std_output)(struct v4l2_subdev *sd, v4l2_std_id *std); |
321 | int (*querystd)(struct v4l2_subdev *sd, v4l2_std_id *std); | 321 | int (*querystd)(struct v4l2_subdev *sd, v4l2_std_id *std); |
@@ -693,7 +693,7 @@ void v4l2_subdev_init(struct v4l2_subdev *sd, | |||
693 | /* Call an ops of a v4l2_subdev, doing the right checks against | 693 | /* Call an ops of a v4l2_subdev, doing the right checks against |
694 | NULL pointers. | 694 | NULL pointers. |
695 | 695 | ||
696 | Example: err = v4l2_subdev_call(sd, core, s_std, norm); | 696 | Example: err = v4l2_subdev_call(sd, video, s_std, norm); |
697 | */ | 697 | */ |
698 | #define v4l2_subdev_call(sd, o, f, args...) \ | 698 | #define v4l2_subdev_call(sd, o, f, args...) \ |
699 | (!(sd) ? -ENODEV : (((sd)->ops->o && (sd)->ops->o->f) ? \ | 699 | (!(sd) ? -ENODEV : (((sd)->ops->o && (sd)->ops->o->f) ? \ |