Skip to content

Commit 78c633a

Browse files
Niklas Söderlundhverkuil
authored andcommitted
media: adv7180: Remove g_pixelaspect implementation
There are no consumer left of g_pixelaspect in the tree, remove the implementation from the adv7180 driver in preparation of removing it from struct v4l2_subdev_video_ops all together. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Link: https://lore.kernel.org/r/20250705083741.77517-2-niklas.soderlund+renesas@ragnatech.se Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
1 parent 145437c commit 78c633a

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

drivers/media/i2c/adv7180.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -868,21 +868,6 @@ static int adv7180_get_skip_frames(struct v4l2_subdev *sd, u32 *frames)
868868
return 0;
869869
}
870870

871-
static int adv7180_g_pixelaspect(struct v4l2_subdev *sd, struct v4l2_fract *aspect)
872-
{
873-
struct adv7180_state *state = to_state(sd);
874-
875-
if (state->curr_norm & V4L2_STD_525_60) {
876-
aspect->numerator = 11;
877-
aspect->denominator = 10;
878-
} else {
879-
aspect->numerator = 54;
880-
aspect->denominator = 59;
881-
}
882-
883-
return 0;
884-
}
885-
886871
static int adv7180_g_tvnorms(struct v4l2_subdev *sd, v4l2_std_id *norm)
887872
{
888873
*norm = V4L2_STD_ALL;
@@ -929,7 +914,6 @@ static const struct v4l2_subdev_video_ops adv7180_video_ops = {
929914
.querystd = adv7180_querystd,
930915
.g_input_status = adv7180_g_input_status,
931916
.s_routing = adv7180_s_routing,
932-
.g_pixelaspect = adv7180_g_pixelaspect,
933917
.g_tvnorms = adv7180_g_tvnorms,
934918
.s_stream = adv7180_s_stream,
935919
};

0 commit comments

Comments
 (0)