]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 20 Oct 2016 15:58:33 +0000 (17:58 +0200)
commit91ea2f29cba6a7fe035ea232e4f981211a9fce5d
tree9a9bdf552a8f53783c8d6aa5c303bbd2b4bb57e6
parentb3e0b2dba870cc2f1d614a0f04459c18d8bf71a3
drm/sun4i: tcon: Move SoC specific quirks to a DT matched data structure

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>
drivers/gpu/drm/sun4i/sun4i_tcon.c
drivers/gpu/drm/sun4i/sun4i_tcon.h