]> git.ipfire.org Git - thirdparty/linux.git/commit
fbcon: Streamline setting rotated/unrotated bitops
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 9 Sep 2025 12:44:45 +0000 (14:44 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 19 Sep 2025 08:04:06 +0000 (10:04 +0200)
commitfdf1b6b77d1886ad0d51d90aa9ef17f893d0a749
tree3f6aec59c51cdc8f79816aa17cde20cfc121bcde
parent217cb07be424d127293dc0b32dbd077ad37c24f6
fbcon: Streamline setting rotated/unrotated bitops

Support for console rotation is somewhat bolted onto the helper
fbcon_set_bitops() for unrotated displays.

Update fbcon_set_bitops() with a switch statement that picks the
correct settings helper for the current rotation. For unrotated
consoles, set the bitops for in the new helper fbcon_set_bitops_ur().
Rename the other, existing helpers to match the common naming
scheme.

The old helper fbcon_set_rotate() is no longer used.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://lore.kernel.org/r/20250909124616.143365-6-tzimmermann@suse.de
drivers/video/fbdev/core/bitblit.c
drivers/video/fbdev/core/fbcon.c
drivers/video/fbdev/core/fbcon.h
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