]> 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)
commit22d1be2182c0353ebcf979a1a061764f69bffc76
tree8b26ec529384ea1f3f348cca5e20de78f7d5a6a3
parentbfb5055ffebacb6d9def254c0a51395e242b382c
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