OSDN Git Service

media: marvell-ccic: only calculate the DPHY registers when needed
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 20 Jun 2019 14:49:03 +0000 (10:49 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Jun 2019 17:05:30 +0000 (13:05 -0400)
commit901ecb02113757df8a1b6a6ff29c6941baeec3df
tree2f43b05e63fa0e7a1770e31356c69651e4969ed9
parent03aedb1d2cd7d137c01b5e33eabbf58a48266a3b
media: marvell-ccic: only calculate the DPHY registers when needed

Avoid pointlessly calling calc_dphy() when the bus is not
V4L2_MBUS_CSI2_DPHY. This will make it easier to replace the platform data
with devicetree.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/marvell-ccic/mcam-core.c