]> git.sur5r.net Git - u-boot/commitdiff
vbe: Make vbe_setup_video_priv() public
authorBin Meng <bmeng.cn@gmail.com>
Sun, 9 Oct 2016 11:14:15 +0000 (04:14 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 12 Oct 2016 02:56:51 +0000 (10:56 +0800)
vbe_setup_video_priv() might be useful to other drivers.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/pci/pci_rom.c
include/vbe.h

index 5746c3d551f9d8311fc8ea4db8c321bf11857927..cd083f7dde8c8353585416df3fe86b47f50c5a67 100644 (file)
@@ -351,9 +351,9 @@ err:
 }
 
 #ifdef CONFIG_DM_VIDEO
-static int vbe_setup_video_priv(struct vesa_mode_info *vesa,
-                               struct video_priv *uc_priv,
-                               struct video_uc_platdata *plat)
+int vbe_setup_video_priv(struct vesa_mode_info *vesa,
+                        struct video_priv *uc_priv,
+                        struct video_uc_platdata *plat)
 {
        if (!vesa->x_resolution)
                return -ENXIO;
index a743892d27f8e116798f53656ef5bbb14d036041..16bb0962367eca05e7bb07b1915c9db3147991f9 100644 (file)
@@ -107,6 +107,10 @@ extern struct vbe_mode_info mode_info;
 struct graphic_device;
 int vbe_get_video_info(struct graphic_device *gdev);
 struct video_priv;
+struct video_uc_platdata;
+int vbe_setup_video_priv(struct vesa_mode_info *vesa,
+                        struct video_priv *uc_priv,
+                        struct video_uc_platdata *plat);
 int vbe_setup_video(struct udevice *dev, int (*int15_handler)(void));
 
 #endif