media: i2c: Add ov7251_pll_configure()
authorDaniel Scally <djrscally@gmail.com>
Thu, 5 May 2022 23:03:53 +0000 (01:03 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 17 May 2022 07:49:54 +0000 (09:49 +0200)
commitdf057b0dd99b965c93cdf4c2d032a9c9254b6118
tree101969675b78ad215ff9a519934c54c37ae25d0f
parent1757b44eb6bb298221f0dd8c8fa517ad6e19c72d
media: i2c: Add ov7251_pll_configure()

Rather than having the pll settings hidden inside mode blobs, define
them in structs and use a dedicated function to set them. This makes
it simpler to extend the driver to support other frequencies for both
the external clock and desired link frequency.

Signed-off-by: Daniel Scally <djrscally@gmail.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov7251.c