]> git.karo-electronics.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)
committerHans de Goede <hdegoede@redhat.com>
Sat, 8 Aug 2015 14:26:20 +0000 (16:26 +0200)
commitbf689342a3b6c7dd9eb5a81fc9559cef84d9009a
tree22ebb3fd386a5bec3ccab6bd66eb29e06d936d94
parent5fa9b6f0ff289946a677892be64d4d19788632a4
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