drm/imx: use for_each_endpoint_of_node macro in imx_drm_encoder_get_mux_id
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 3 Jul 2014 21:07:49 +0000 (23:07 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 8 Apr 2015 09:14:26 +0000 (11:14 +0200)
commit539bb6a248858edd99d8645677345799f37ca51d
tree8ab15ba97423eba1daed520c69210c2cf8ca21e1
parent7416f4e33b5e924baa030ddab1f261a0a85fa32e
drm/imx: use for_each_endpoint_of_node macro in imx_drm_encoder_get_mux_id

Using the for_each_... macro should make the code bit shorter and
easier to read. This patch also properly decrements the endpoint node
reference count before returning out of the loop.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/imx-drm-core.c