drm/bridge: ti-sn65dsi86: fetch bpc using drm_atomic_state
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 11 Jul 2022 09:21:16 +0000 (12:21 +0300)
committerDouglas Anderson <dianders@chromium.org>
Tue, 19 Jul 2022 17:10:05 +0000 (10:10 -0700)
commit2dbeef82d14fda3b15d40c94522bdf83f9c33ae8
tree95dd9670f9d1c2ab5f6efd6853dc3b1e6fb638a5
parent6d602e031103fb78dbe50dbf57a5f29737494c6f
drm/bridge: ti-sn65dsi86: fetch bpc using drm_atomic_state

Rather than reading the pdata->connector directly, fetch the connector
using drm_atomic_state. This allows us to make pdata->connector optional
(and thus supporting DRM_BRIDGE_ATTACH_NO_CONNECTOR).

Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tested-by: Steev Klimaszewski <steev@kali.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220711092117.360797-2-dmitry.baryshkov@linaro.org
drivers/gpu/drm/bridge/ti-sn65dsi86.c