drm/sun4i: use sun4i_tcon_of_table to check if a device node is a TCON
authorChen-Yu Tsai <wens@csie.org>
Mon, 27 Nov 2017 08:46:32 +0000 (16:46 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 30 Nov 2017 15:46:05 +0000 (16:46 +0100)
commitff71c2cf5eb255b7dd03da5de4dd414394d9e346
tree5095b4e4d427637d89f1cfc27dfc96b459744d5b
parent2f51be0945b9e0b9baafe47289c802be6d4c7980
drm/sun4i: use sun4i_tcon_of_table to check if a device node is a TCON

The sun4i DRM driver maintains a list of compatible strings it uses to
check if a device node within the display component graph is a TCON.
The TCON driver also has this list, used to bind the TCON driver to
the device. These two lists are identical.

Instead of maintaining two identical lists, export the list from the
TCON driver for the DRM driver to use.

Suggested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171127084632.25511-1-wens@csie.org
drivers/gpu/drm/sun4i/sun4i_drv.c
drivers/gpu/drm/sun4i/sun4i_tcon.c
drivers/gpu/drm/sun4i/sun4i_tcon.h