]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib/fonts: Store font data as font_data_t; update consoles
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 9 Mar 2026 14:14:49 +0000 (15:14 +0100)
committerHelge Deller <deller@gmx.de>
Mon, 9 Mar 2026 14:47:20 +0000 (15:47 +0100)
commit04bd5abc8cbebc1bd7e02471a8e3af51b8aad029
treec5528a4566b841b577d9ff5e1e04530ad770d6f2
parent773ac24c44614ad1d5a96258534160c4a0d48d72
lib/fonts: Store font data as font_data_t; update consoles

Store font data as pointer to font_data_t instead of unsigned char.
Update consoles.

Pointers to font data refer to the raw data. There is a hidden header
before the data that contains additional state. Document the existing
layout and semantics of font_data_t.

The data field in struct vc_font can be used by any console. Therefore
it still points to plain data without the additional header. Fbcon sets
its value from struct fbcon_display.fontdata. Hence, update the size
test in fbcon_resize() to use struct fbcon_display.fontdata instead of
struct vc_font.data.

v3:
- fix typos (Helge)
v2:
- 'Font lookup' -> 'Font description' in <linux/font.h>

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/console/newport_con.c
drivers/video/fbdev/core/fbcon.c
drivers/video/fbdev/core/fbcon.h
include/linux/font.h