]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
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)
commitfb0d7936e23b63732421c3a644e9a098d47f6533
tree986590522d99546f62eb325ef2018e3b93fca509
parent40fe7532932bab688f5a976ca0c68eab48862811
sunxi: display: Replace #ifdef-ery with helper functions

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>
drivers/video/sunxi_display.c