media: ov5645: Add control to export CSI2 link frequency
authorTodor Tomov <todor.tomov@linaro.org>
Wed, 5 Jul 2017 08:44:49 +0000 (04:44 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 19 Jul 2017 19:52:00 +0000 (15:52 -0400)
commite72e6cbe7962fc72e9b13ffaa746ab93d7a20a9b
tree59bf030c4f2aa16710f8cfb3d8fe9f28ef00ab90
parent1c2177fd99ab9e622126b1ec29f2a452140edf86
media: ov5645: Add control to export CSI2 link frequency

Add suport for standard integer menu V4L2_CID_LINK_FREQ control.
The CSI2 link frequency value is specific for each sensor mode so the
sensor mode structure is extended to add this. The control is made
read-only and its value is updated when the sensor mode is changed -
on set_format.

Signed-off-by: Todor Tomov <todor.tomov@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/ov5645.c