]> Gentwo Git Trees - linux/.git/commit
fbcon: Set rotate_font callback with related callbacks
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 9 Sep 2025 12:44:43 +0000 (14:44 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 19 Sep 2025 08:04:04 +0000 (10:04 +0200)
commit9cfd09402eb45f1b14b60668fd7c628445efdd8d
treea34cd6ef3a135e8437bdf5c7dda3c0e370f8de92
parenta6adbbc4c32a016146e117b1e9e5242724a75e10
fbcon: Set rotate_font callback with related callbacks

The field struct fbcon_par.rotate_font points to fbcon_rotate_font() if
the console is rotated. Set the callback in the same place as the other
callbacks. Prepares for declaring all fbcon callbacks in a dedicated
struct type.

If not rotated, fbcon_set_bitops() still clears the callback to NULL.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://lore.kernel.org/r/20250909124616.143365-4-tzimmermann@suse.de
drivers/video/fbdev/core/fbcon_ccw.c
drivers/video/fbdev/core/fbcon_cw.c
drivers/video/fbdev/core/fbcon_rotate.c
drivers/video/fbdev/core/fbcon_rotate.h
drivers/video/fbdev/core/fbcon_ud.c