]> git.baikalelectronics.ru Git - kernel.git/commit
media: imx7: csi: Remove imx7_csi_get_upstream_endpoint()
authorSteve Longerbeam <slongerbeam@gmail.com>
Fri, 1 May 2020 17:15:51 +0000 (19:15 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 18 May 2020 12:23:11 +0000 (14:23 +0200)
commit314f0c44f45f535853bc7dc33c98d2aceee0c1bc
tree8b26ec529384ea1f3f348cca5e20de78f7d5a6a3
parent60f886e87a17e7854a2d307a6a4b19b4459979c5
media: imx7: csi: Remove imx7_csi_get_upstream_endpoint()

The function imx7_csi_get_upstream_endpoint() is not necessary for
imx7. First, the imx7 CSI only receives from the CSI mux, so much of
the code in there is pointless. Second, it is only used to determine
whether the CSI mux has selected the CSI-2 input or the parallel input.
This can be accomplished much more simply by getting the function type
of selected input entity to the CSI mux.

Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Acked-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/imx/imx7-media-csi.c