]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
sunxi: video: Improve monitor video-mode option handling
authorHans de Goede <hdegoede@redhat.com>
Sun, 21 Dec 2014 13:37:45 +0000 (14:37 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 14 Jan 2015 13:56:39 +0000 (14:56 +0100)
commit1c092205a251165950ce59118d253984e6386005
treeef2aa20698eddb1f49bbec22445f447a9fc60043
parent6c727e09a022fcc0701eef58c4a5aedae5d9a6ac
sunxi: video: Improve monitor video-mode option handling

Add a sunxi_monitor enum and parse the monitor option string into this enum
once, rather then doing strcmp-s on it in various places. This also adds
checking for it being a valid value.

This also adds new "none" and "lcd" values in preparation for lcd support.

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