drm/imx-ldb: Add support to drm-bridge
authorPeter Senna Tschudin <peter.senna@collabora.com>
Thu, 4 Aug 2016 22:36:58 +0000 (00:36 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 11 Aug 2016 09:34:22 +0000 (11:34 +0200)
commitdc80d7038883feca2abd08975165bc0d83c84762
tree7985a8fedbabcf37c8c8ed964ba4357b1291fcb3
parent3a2ad5028cf2cc3067c7d8bf7fab68d9c1c3c0e8
drm/imx-ldb: Add support to drm-bridge

Add support to attach a drm_bridge to imx-ldb in addition to
existing support to attach a LVDS panel.

This patch does a simple code refactoring by moving code
from for_each_child_of_node iterator to a new function named
imx_ldb_panel_ddc(). This was necessary to allow the panel ddc
code to run only when the imx_ldb is not attached to a bridge.

Cc: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Rob Herring <robh@kernel.org>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Thierry Reding <treding@nvidia.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Peter Senna Tschudin <peter.senna@collabora.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/imx-ldb.c