]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: atomisp: gc0310: Drop gc0310_g_skip_frames()
authorHans de Goede <hansg@kernel.org>
Sat, 17 May 2025 11:41:05 +0000 (13:41 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 8 Jul 2025 06:43:32 +0000 (08:43 +0200)
The g_skip_frames sensor-op is obsolete, drop it.

Signed-off-by: Hans de Goede <hansg@kernel.org>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20250517114106.43494-23-hansg@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/i2c/atomisp-gc0310.c

index 956d3213d19883ca079c617022118c50ee498d5e..7af4d66f42a0f0ad3ddf15966d8a29bbfbdbc6a9 100644 (file)
@@ -526,16 +526,6 @@ static int gc0310_enum_frame_size(struct v4l2_subdev *sd,
        return 0;
 }
 
-static int gc0310_g_skip_frames(struct v4l2_subdev *sd, u32 *frames)
-{
-       *frames = GC0310_SKIP_FRAMES;
-       return 0;
-}
-
-static const struct v4l2_subdev_sensor_ops gc0310_sensor_ops = {
-       .g_skip_frames  = gc0310_g_skip_frames,
-};
-
 static const struct v4l2_subdev_video_ops gc0310_video_ops = {
        .s_stream = v4l2_subdev_s_stream_helper,
 };
@@ -554,7 +544,6 @@ static const struct v4l2_subdev_pad_ops gc0310_pad_ops = {
 static const struct v4l2_subdev_ops gc0310_ops = {
        .video = &gc0310_video_ops,
        .pad = &gc0310_pad_ops,
-       .sensor = &gc0310_sensor_ops,
 };
 
 static int gc0310_init_state(struct v4l2_subdev *sd,