Commit b52587c5 authored by Ard Biesheuvel's avatar Ard Biesheuvel
Browse files

efi/libstub: Refactor and clean up GOP resolution picker code



The EFI stub implements various ways of setting the resolution of the
EFI framebuffer at boot, and this duplicates a lot of boilerplate for
iterating over the supported modes and extracting the resolution and
color depth.

Refactor this into a single helper that takes a callback, and use it for
the 'auto', 'list' and 'res' selection methods.

Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 60a34085
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment