Use of V4L2_SEL_TGT_CROP_DEFAULT in i2c subdev drivers
Hi,
Documentation/media/uapi/v4l/v4l2-selection-targets.rst says that V4L2_SEL_TGT_CROP_DEFAULT is not valid for subdev drivers. Looking into drivers/media/i2c (which contains only subdev drivers except for video-i2c.c), the following drivers implement V4L2_SEL_TGT_CROP_DEFAULT:
ak881x.cmt9m111.cmt9t112.cov2640.cov6650.cov772x.crj54n1cb0c.csoc_camera/mt9m001.csoc_camera/mt9t112.csoc_camera/mt9v022.csoc_camera/ov5642.csoc_camera/ov772x.csoc_camera/ov9640.csoc_camera/ov9740.csoc_camera/rj54n1cb0c.ctvp5150.c
The majority of drivers behave equally for V4L2_SEL_TGT_CROP_DEFAULT and V4L2_SEL_TGT_CROP_BOUNDS. The only exceptions are mt9t112.c and soc_camera/mt9t112.c. Actually these two look very similar. A significant fraction of differences is white space, case and operand order.
Is this a bug in 16 drivers? Is this a documentation bug? Am I getting something wrong?
Helmut