Message ID | 1476011660-6780-7-git-send-email-bmeng.cn@gmail.com |
---|---|
State | Accepted |
Commit | 5f6ad029f31e897fa8bd62d3f42092e051932bc2 |
Delegated to: | Bin Meng |
Headers | show |
On 9 October 2016 at 05:14, Bin Meng <bmeng.cn@gmail.com> wrote: > vbe_setup_video_priv() might be useful to other drivers. > > Signed-off-by: Bin Meng <bmeng.cn@gmail.com> > --- > > drivers/pci/pci_rom.c | 6 +++--- > include/vbe.h | 4 ++++ > 2 files changed, 7 insertions(+), 3 deletions(-) Reviewed-by: Simon Glass <sjg@chromium.org>
On Wed, Oct 12, 2016 at 8:06 AM, Simon Glass <sjg@chromium.org> wrote: > On 9 October 2016 at 05:14, Bin Meng <bmeng.cn@gmail.com> wrote: >> vbe_setup_video_priv() might be useful to other drivers. >> >> Signed-off-by: Bin Meng <bmeng.cn@gmail.com> >> --- >> >> drivers/pci/pci_rom.c | 6 +++--- >> include/vbe.h | 4 ++++ >> 2 files changed, 7 insertions(+), 3 deletions(-) > > Reviewed-by: Simon Glass <sjg@chromium.org> applied to u-boot-x86, thanks!
diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c index 5746c3d..cd083f7 100644 --- a/drivers/pci/pci_rom.c +++ b/drivers/pci/pci_rom.c @@ -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; diff --git a/include/vbe.h b/include/vbe.h index a743892..16bb096 100644 --- a/include/vbe.h +++ b/include/vbe.h @@ -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
vbe_setup_video_priv() might be useful to other drivers. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> --- drivers/pci/pci_rom.c | 6 +++--- include/vbe.h | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-)