videomodes: Add video_get_ctfb_res_modes helper function
authorHans de Goede <hdegoede@redhat.com>
Fri, 19 Dec 2014 12:22:47 +0000 (13:22 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 14 Jan 2015 13:56:38 +0000 (14:56 +0100)
commite976b868f2f77eddf7f61d52dfe2a23075ae272d
tree10964743c2b1616a752cbb844579fe1ee4a08265
parent59bb610922257de60e3ece5c0f699bd929c4f1f6
videomodes: Add video_get_ctfb_res_modes helper function

Add a video_get_ctfb_res_modes() helper function, which uses
video_get_video_mode() to parse the 'video-mode' environment variable and then
looks up the matching mode in res_mode_init and returns the matching mode.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Anatolij Gustschin <agust@denx.de>
drivers/video/videomodes.c
drivers/video/videomodes.h