]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
sunxi: display: Replace #ifdef-ery with helper functions
authorHans de Goede <hdegoede@redhat.com>
Mon, 3 Aug 2015 21:01:38 +0000 (23:01 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:39 +0000 (08:17 +0200)
All the #ifdef-ery in selecting the default and fallback monitor type is
becoming unyielding and makes the code hard to read, replace it with a few
helper functions.

This will also be useful with the upcoming CHIP board which has display
adapter daughterboards which should be runtime detectable.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>

No differences found