lib: Rename fill_lb_framebuffer to get_lb_framebuffer

Rename `fill_lb_framebuffer` to `get_lb_framebuffer` to better
reflect that it returns framebuffer information.

The new `get_lb_framebuffer` returns a constant pointer to the
framebuffer structure instead of filling a provided structure.
This simplifies the API and avoids an unnecessary memory copy.

The file `edid_fill_fb.c` is renamed to `framebuffer_info.c`
to better match the function it now contains.

Call sites in `coreboot_table.c` and `render_bmp.c` are
updated to use the new API.

TEST=emerge-tanjiro coreboot; check the FW logo is correctly drawn.
BUG=b:319511268

Change-Id: I8d7b20a0524b6bc9fff9e6461fa0c253345df790
Signed-off-by: Yidi Lin <yidilin@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/90725
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Chen-Tsung Hsieh <chentsung@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
Yidi Lin 2026-01-12 15:01:12 +08:00
commit 1d2b399fd7
5 changed files with 16 additions and 19 deletions

View file

@ -33,9 +33,9 @@ void lb_efi_fw_info(struct lb_header *header);
/* Adds LB_TAG_CAPSULE table entries. */
void lb_efi_capsules(struct lb_header *header);
/* Define this function to fill in the frame buffer returning 0 on success and
< 0 on error. */
int fill_lb_framebuffer(struct lb_framebuffer *framebuffer);
/* Define this function to get the frame buffer returning lb_framebuffer object
on success and NULL on error. */
const struct lb_framebuffer *get_lb_framebuffer(void);
/* Allow arch to add records. */
void lb_arch_add_records(struct lb_header *header);