]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
vt: Calculate font-buffer size with vc_font_size()
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 9 Mar 2026 14:14:46 +0000 (15:14 +0100)
committerHelge Deller <deller@gmx.de>
Mon, 9 Mar 2026 14:47:20 +0000 (15:47 +0100)
commite370d84b79ad28ecf9a9e1dad967aa64dbfbd8d8
treef7ea0d440f62e98bb8bd769a3065d719faf84183
parent61912c607fa9955dcf3fc018b227baa98a6776dc
vt: Calculate font-buffer size with vc_font_size()

In fbcon, fbcon_resize() computes the size of the font buffer from the
values stored in vc_font. Move these calculations to the dedicated helpers
vc_font_pitch() and vc_font_size().

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