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)
commitfe7aee5d353346968eba111a0414250d8cc09527
tree8b26ec529384ea1f3f348cca5e20de78f7d5a6a3
parent2c586f18919895f0acb9906dcd8a1790b19464bc
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