]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb3cdcce3368e91ba7c20101469bdd7e5ba2d0114
tree5095b4e4d427637d89f1cfc27dfc96b459744d5b
parent44aae49ddf076fc301f58e418d721ee6e582d1c5
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