]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
media: v4l2-subdev: Remove non-pad dv timing callbacks
authorPaweł Anikiel <panikiel@google.com>
Fri, 5 Apr 2024 14:14:11 +0000 (14:14 +0000)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 9 Apr 2024 06:15:04 +0000 (08:15 +0200)
After the conversion of dv timing calls to use a pad argument is done,
remove the old callbacks. Update the subdev ioctl handlers to use the
new callbacks.

Signed-off-by: Paweł Anikiel <panikiel@google.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/v4l2-core/v4l2-subdev.c
include/media/v4l2-subdev.h

index 07759cdd08442019d6d4f556ca448313d623a229..6572667fd5c4ca496810b879cf86a04ec81efcd5 100644 (file)
@@ -906,16 +906,16 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg,
        }
 
        case VIDIOC_SUBDEV_QUERY_DV_TIMINGS:
-               return v4l2_subdev_call(sd, video, query_dv_timings, arg);
+               return v4l2_subdev_call(sd, pad, query_dv_timings, 0, arg);
 
        case VIDIOC_SUBDEV_G_DV_TIMINGS:
-               return v4l2_subdev_call(sd, video, g_dv_timings, arg);
+               return v4l2_subdev_call(sd, pad, g_dv_timings, 0, arg);
 
        case VIDIOC_SUBDEV_S_DV_TIMINGS:
                if (ro_subdev)
                        return -EPERM;
 
-               return v4l2_subdev_call(sd, video, s_dv_timings, arg);
+               return v4l2_subdev_call(sd, pad, s_dv_timings, 0, arg);
 
        case VIDIOC_SUBDEV_G_STD:
                return v4l2_subdev_call(sd, video, g_std, arg);
index a5213411ef2b5e6550e5a869154b3ee9b36568e3..1af16b16f0bf7242dc9a6b371e0b598e74920790 100644 (file)
@@ -452,14 +452,6 @@ enum v4l2_subdev_pre_streamon_flags {
  *
  * @g_pixelaspect: callback to return the pixelaspect ratio.
  *
- * @s_dv_timings: Set custom dv timings in the sub device. This is used
- *     when sub device is capable of setting detailed timing information
- *     in the hardware to generate/detect the video signal.
- *
- * @g_dv_timings: Get custom dv timings in the sub device.
- *
- * @query_dv_timings: callback for VIDIOC_QUERY_DV_TIMINGS() ioctl handler code.
- *
  * @s_rx_buffer: set a host allocated memory buffer for the subdev. The subdev
  *     can adjust @size to a lower value and must not write more data to the
  *     buffer starting at @data than the original value of @size.
@@ -490,12 +482,6 @@ struct v4l2_subdev_video_ops {
        int (*g_input_status)(struct v4l2_subdev *sd, u32 *status);
        int (*s_stream)(struct v4l2_subdev *sd, int enable);
        int (*g_pixelaspect)(struct v4l2_subdev *sd, struct v4l2_fract *aspect);
-       int (*s_dv_timings)(struct v4l2_subdev *sd,
-                       struct v4l2_dv_timings *timings);
-       int (*g_dv_timings)(struct v4l2_subdev *sd,
-                       struct v4l2_dv_timings *timings);
-       int (*query_dv_timings)(struct v4l2_subdev *sd,
-                       struct v4l2_dv_timings *timings);
        int (*s_rx_buffer)(struct v4l2_subdev *sd, void *buf,
                           unsigned int *size);
        int (*pre_streamon)(struct v4l2_subdev *sd, u32 flags);