]> www.infradead.org Git - users/jedix/linux-maple.git/commit
efi/libstub: Refactor and clean up GOP resolution picker code
authorArd Biesheuvel <ardb@kernel.org>
Fri, 20 Dec 2024 11:00:28 +0000 (12:00 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 14 Jan 2025 07:35:27 +0000 (08:35 +0100)
commitb52587c5e897e91ad59a59741e8af086151e7fbc
tree1dea4db93e7a8a34ba9de7ccedd8d9ff3277ecf7
parent60a34085c36d6eb292c1e03bc355b1aa3a74a689
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: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/gop.c