summaryrefslogtreecommitdiff
path: root/drivers/video/videomodes.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-12-19 14:27:46 +0100
committerHans de Goede <hdegoede@redhat.com>2015-01-14 14:56:38 +0100
commiteb3c0cf8069a004512aac23d85c87c2ee348f8cd (patch)
treeb73c86b484deb7302d3c37badc51b511dc4bf4f3 /drivers/video/videomodes.h
parente976b868f2f77eddf7f61d52dfe2a23075ae272d (diff)
downloadu-boot-eb3c0cf8069a004512aac23d85c87c2ee348f8cd.tar.gz
videomodes: Add helper functions to parse video-mode env-var extra options
Add 2 helper functions to get strings, respectively integers from the options value returned by video_get_video_mode() / video_get_ctfb_res_modes(). Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'drivers/video/videomodes.h')
-rw-r--r--drivers/video/videomodes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/videomodes.h b/drivers/video/videomodes.h
index 02419cdeac..047b8a9838 100644
--- a/drivers/video/videomodes.h
+++ b/drivers/video/videomodes.h
@@ -84,3 +84,8 @@ void video_get_ctfb_res_modes(int default_mode, unsigned int default_depth,
const struct ctfb_res_modes **mode_ret,
unsigned int *depth_ret,
const char **options);
+
+void video_get_option_string(const char *options, const char *name,
+ char *dest, int dest_len, const char *def);
+
+int video_get_option_int(const char *options, const char *name, int def);