UPSTREAM: vbe: remove the necessity for a global vbe_mode_info_valid()

There's no users of vbe_mode_info_valid() aside from the local
compilation units. Remove the declaration and make the function
static to the current global implementers.

BUG=none
BRANCH=none
TEST=none

Change-Id: I12a5c25769e399734edbb1f386f7febe6f6bd8a9
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Original-Commit-Id: 57e15e609e
Original-Change-Id: I4872ac6ad15ba6a86bba69d51a8348b9921c152d
Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/19730
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Original-Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://chromium-review.googlesource.com/533042
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
This commit is contained in:
Aaron Durbin 2017-05-16 21:50:27 -05:00 committed by chrome-bot
commit 924948ddef
4 changed files with 3 additions and 4 deletions

View file

@ -216,7 +216,7 @@ static void setup_realmode_idt(void)
vbe_mode_info_t mode_info;
static int mode_info_valid;
int vbe_mode_info_valid(void)
static int vbe_mode_info_valid(void)
{
return mode_info_valid;
}

View file

@ -156,7 +156,7 @@ vbe_info(vbe_info_t * info)
static int mode_info_valid;
int vbe_mode_info_valid(void)
static int vbe_mode_info_valid(void)
{
return mode_info_valid;
}

View file

@ -421,7 +421,7 @@ int xgifb_modeset(struct pci_dev *pdev, struct xgifb_video_info *xgifb_info)
return 0;
}
int vbe_mode_info_valid(void)
static int vbe_mode_info_valid(void)
{
return xgi_vbe_valid;
}

View file

@ -111,7 +111,6 @@ typedef struct {
#define VESA_GET_MODE_INFO 0x4f01
#define VESA_SET_MODE 0x4f02
int vbe_mode_info_valid(void);
void vbe_set_graphics(void);
void vbe_textmode_console(void);