mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-29 10:39:22 +00:00
grub_video_get_edid is not usable from grub_vbe_get_preferred_mode, as a
video adapter has not necessarily yet been set. Use grub_video_vbe_get_edid and grub_video_edid_checksum directly instead. Remove grub_video_get_edid as it now has no users. Reported by: Marjo Mercado.
This commit is contained in:
1 parent
cb918eddf4
commit
9b300caf84
4 files changed
+21
-41
No files matched your search
@@ -393,24 +393,6 @@ grub_video_edid_checksum (struct grub_video_edid_info *edid_info)
|
||||
return grub_errno;
|
||||
}
|
||||
|
||||
grub_err_t
|
||||
grub_video_get_edid (struct grub_video_edid_info *edid_info)
|
||||
{
|
||||
if (! grub_video_adapter_active)
|
||||
return grub_error (GRUB_ERR_BAD_DEVICE, "no video mode activated");
|
||||
|
||||
if (! grub_video_adapter_active->get_edid)
|
||||
return grub_error (GRUB_ERR_BAD_DEVICE,
|
||||
"EDID information unavailable for this video mode");
|
||||
|
||||
if (grub_video_adapter_active->get_edid (edid_info) != GRUB_ERR_NONE)
|
||||
return grub_errno;
|
||||
if (grub_video_edid_checksum (edid_info) != GRUB_ERR_NONE)
|
||||
return grub_errno;
|
||||
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
||||
grub_err_t
|
||||
grub_video_edid_preferred_mode (struct grub_video_edid_info *edid_info,
|
||||
unsigned int *width, unsigned int *height)
|
||||
|
||||
Reference in new issue
Block a user