media: ov5645: Add control to export pixel clock frequency
authorTodor Tomov <todor.tomov@linaro.org>
Wed, 5 Jul 2017 08:44:48 +0000 (04:44 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 19 Jul 2017 19:51:25 +0000 (15:51 -0400)
commit1c2177fd99ab9e622126b1ec29f2a452140edf86
tree60f1445feae5e3104d4b2cfc658d866a21edb75d
parentf7b51859e830398a6b1faaca171156c8b18848a8
media: ov5645: Add control to export pixel clock frequency

Add suport for standard V4L2_CID_PIXEL_RATE control. The pixel clock
frequency value is specific for each sensor mode so the sensor mode
structure is extended to add this. The control is 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