Re: [PATCH 3/3] [media] ov5645: Add control to export CSI2 link frequency

From: Sakari Ailus
Date: Wed Jul 05 2017 - 19:15:05 EST


On Wed, Jul 05, 2017 at 11:44:49AM +0300, Todor Tomov wrote:
> @@ -1231,6 +1246,13 @@ static int ov5645_probe(struct i2c_client *client,
> &ov5645_ctrl_ops,
> V4L2_CID_PIXEL_RATE,
> 1, INT_MAX, 1, 1);
> + ov5645->link_freq = v4l2_ctrl_new_int_menu(&ov5645->ctrls,
> + &ov5645_ctrl_ops,
> + V4L2_CID_LINK_FREQ,
> + ARRAY_SIZE(link_freq) - 1,
> + 0, link_freq);
> + if(ov5645->link_freq)

Thanks!

Applied the set, with the above typo fixed (i.e. space added).

> + ov5645->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY;
>
> ov5645->sd.ctrl_handler = &ov5645->ctrls;
>

--
Regards,

Sakari Ailus
e-mail: sakari.ailus@xxxxxx XMPP: sailus@xxxxxxxxxxxxxx