drm/bridge: Refactor out the panel wrapper from the lvds-encoder bridge.
authorEric Anholt <eric@anholt.net>
Fri, 2 Jun 2017 20:25:14 +0000 (13:25 -0700)
committerArchit Taneja <architt@codeaurora.org>
Mon, 5 Jun 2017 08:30:40 +0000 (14:00 +0530)
commit13dfc0540a575b47b2d640b093ac16e9e09474f6
treecafdf5725be58809db3bcbacdbb6639f8ab03125
parentb0febde779fd5d2e3e6f83843a828726117fe0a7
drm/bridge: Refactor out the panel wrapper from the lvds-encoder bridge.

Many DRM drivers have common code to make a stub connector
implementation that wraps a drm_panel.  By wrapping the panel in a DRM
bridge, all of the connector code (including calls during encoder
enable/disable) goes away.

v2: Fix build with CONFIG_DRM=m, drop "dev" argument that should just
    be the panel's dev, move kerneldoc up a level and document
    _remove().
v3: Fix another breakage with CONFIG_DRM=m, fix breakage with
    CONFIG_OF=n, move protos under CONFIG_DRM_PANEL_BRIDGE, wrap a
    line.

Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> (v1)
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com> (v2)
Acked-by: Archit Taneja <architt@codeaurora.org> (v2)
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170602202514.11900-1-eric@anholt.net
Documentation/gpu/drm-kms-helpers.rst
drivers/gpu/drm/Makefile
drivers/gpu/drm/bridge/Kconfig
drivers/gpu/drm/bridge/lvds-encoder.c
drivers/gpu/drm/bridge/panel.c [new file with mode: 0644]
include/drm/drm_bridge.h