drm/sun4i: tcon: Get the connector from the encoder in RGB setup
authorPaul Kocialkowski <contact@paulk.fr>
Wed, 7 Nov 2018 18:18:37 +0000 (19:18 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Fri, 9 Nov 2018 07:31:25 +0000 (08:31 +0100)
commit4843c9a208c05662811cbd0e3a0fd3e43a0ae965
treee2b945dda5a2851b2f5284d802b31103d942b1b8
parentb842e2c9c0f2cb5f90f03d68963c0aae266c4c67
drm/sun4i: tcon: Get the connector from the encoder in RGB setup

Features such as dithering and pixel data edge configuration currently
rely on the panel registered with the TCON driver. However, bridges are
also supported in addition to panels for RGB setup.

Instead of retrieving the connector from the panel, get it from the
encoder with the dedicated helper.

Even in the case of bridges, the connector is registered with the
encoder from our driver and is accessible when iterating connectors.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181107181843.27628-3-contact@paulk.fr
drivers/gpu/drm/sun4i/sun4i_tcon.c