imx-drm: imx-drm-core: fix imx_drm_encoder_get_mux_id
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 7 Apr 2014 08:22:36 +0000 (10:22 +0200)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 19 Apr 2014 08:36:03 +0000 (09:36 +0100)
commitc509bdc20dd255842d4e9302aad12baa7d166911
tree56a482ca8fa38762f5dfb5193d7419ec069c3090
parentc9eaa447e77efe77b7fa4c953bd62de8297fd6c5
imx-drm: imx-drm-core: fix imx_drm_encoder_get_mux_id

The decoder mux id is equal to the port id of the encoder's input port
that is connected to the given crtc, not to the endpoint id (which is
arbitrary and usually zero).

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/staging/imx-drm/imx-drm-core.c