media: cx25840: Use subdev host data for PLL override
authorBrad Love <brad@nextdimension.cc>
Tue, 6 Mar 2018 19:15:34 +0000 (14:15 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 7 Mar 2018 09:04:40 +0000 (04:04 -0500)
commit3ee9bc12342cf546313d300808ff47d7dbb8e7db
tree2f8e3bc6bf410ee23608c731eae366cb58bf0af0
parent9cbf518efaa8eae88f5a216c2ea58987a5344989
media: cx25840: Use subdev host data for PLL override

The cx25840 driver currently configures 885, 887, and 888 using
default divisors for each chip. This check to see if the cx23885
driver has passed the cx25840 a non-default clock rate for a
specific chip. If a cx23885 board has left clk_freq at 0, the
clock default values will be used to configure the PLLs.

This patch only has effect on 888 boards who set clk_freq to 25M.

Signed-off-by: Brad Love <brad@nextdimension.cc>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/cx25840/cx25840-core.c