/* If a user window larger than sensor window is requested, we'll increase the sensor window.  */
static int mt9t031_try_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf)
/* If a user window larger than sensor window is requested, we'll increase the sensor window.  */
static int mt9t031_try_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf)
{
	v4l_bound_align_image(
		&mf->width, MT9T031_MIN_WIDTH, MT9T031_MAX_WIDTH, 1,
		&mf->height, MT9T031_MIN_HEIGHT, MT9T031_MAX_HEIGHT, 1, 0);
	mf->code	= V4L2_MBUS_FMT_SBGGR10_1X10;
	mf->colorspace	= V4L2_COLORSPACE_SRGB;
	return 0;
}