Skip to content

Commit

Permalink
[media] V4L: soc-camera: switch to using the existing .enum_framesizes()
Browse files Browse the repository at this point in the history
The recently introduced .enum_mbus_fsizes() v4l2-subdev video operation is
a duplicate of the .enum_framesizes() operation, introduced earlier. Switch
soc-camera over to using the original one.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Guennadi Liakhovetski authored and Mauro Carvalho Chehab committed May 15, 2012
1 parent 67e8652 commit 9633c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/soc_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ static int default_enum_framesizes(struct soc_camera_device *icd,
/* map xlate-code to pixel_format, sensor only handle xlate-code*/
fsize_mbus.pixel_format = xlate->code;

ret = v4l2_subdev_call(sd, video, enum_mbus_fsizes, &fsize_mbus);
ret = v4l2_subdev_call(sd, video, enum_framesizes, &fsize_mbus);
if (ret < 0)
return ret;

Expand Down

0 comments on commit 9633c08

Please sign in to comment.