drm/sun4i: tcon: Move SoC specific quirks to a DT matched data structure
authorChen-Yu Tsai <wens@csie.org>
Thu, 20 Oct 2016 03:43:39 +0000 (11:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Apr 2017 10:41:15 +0000 (12:41 +0200)
commit06a2bb472f71c6e2ed2a51c06608680dc20eb327
treed75d732c7456b9afecf92e721247a89fae0764a1
parent7c03613344663982a27c49d5951c80c575714ab8
drm/sun4i: tcon: Move SoC specific quirks to a DT matched data structure

commit 91ea2f29cba6a7fe035ea232e4f981211a9fce5d upstream.

We already have some differences between the 2 supported SoCs.
More will be added as we support other SoCs. To avoid bloating
the probe function with even more conditionals, move the quirks
to a separate data structure that's tied to the compatible string.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/sun4i/sun4i_tcon.c
drivers/gpu/drm/sun4i/sun4i_tcon.h