linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] fbcon: Move bitops callbacks into separate struct
@ 2025-09-09 12:44 Thomas Zimmermann
  2025-09-09 12:44 ` [PATCH v2 1/5] fbcon: Fix empty lines in fbcon.h Thomas Zimmermann
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Thomas Zimmermann @ 2025-09-09 12:44 UTC (permalink / raw)
  To: sam, simona, deller
  Cc: linux-fbdev, dri-devel, linux-kernel, Thomas Zimmermann

Instances of fbcon use a number callbacks to support tile-based
drawing or console rotation. The fields are writeable in struct
fbcon_ops. Each case; unrotated, various rotated and tile-based
drawing; uses a set of related calbacks. Updating these 'bitops'
at runtime is spread throughout various helper functions.

This series puts related callbacks into dedicated instances of the
new type struct fbcon_bitops. Changing the callbacks at runtime
then only requires to pick the correct instance. It further allows
the various struct fbcon_bitops' to be declared 'static const', which
makes them write-protected at runtime.

v2:
- rename struct fbcon_ops to struct fbcon_par
- drop patch 6

Thomas Zimmermann (5):
  fbcon: Fix empty lines in fbcon.h
  fbcon: Rename struct fbcon_ops to struct fbcon_par
  fbcon: Set rotate_font callback with related callbacks
  fbcon: Move fbcon callbacks into struct fbcon_bitops
  fbcon: Streamline setting rotated/unrotated bitops

 drivers/video/fbdev/core/bitblit.c      | 122 +++----
 drivers/video/fbdev/core/fbcon.c        | 459 ++++++++++++------------
 drivers/video/fbdev/core/fbcon.h        |  17 +-
 drivers/video/fbdev/core/fbcon_ccw.c    | 151 ++++----
 drivers/video/fbdev/core/fbcon_cw.c     | 151 ++++----
 drivers/video/fbdev/core/fbcon_rotate.c |  47 +--
 drivers/video/fbdev/core/fbcon_rotate.h |  18 +-
 drivers/video/fbdev/core/fbcon_ud.c     | 167 ++++-----
 drivers/video/fbdev/core/softcursor.c   |  18 +-
 drivers/video/fbdev/core/tileblit.c     |  32 +-
 10 files changed, 604 insertions(+), 578 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-09-09 12:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-09 12:44 [PATCH v2 0/5] fbcon: Move bitops callbacks into separate struct Thomas Zimmermann
2025-09-09 12:44 ` [PATCH v2 1/5] fbcon: Fix empty lines in fbcon.h Thomas Zimmermann
2025-09-09 12:44 ` [PATCH v2 2/5] fbcon: Rename struct fbcon_ops to struct fbcon_par Thomas Zimmermann
2025-09-09 12:44 ` [PATCH v2 3/5] fbcon: Set rotate_font callback with related callbacks Thomas Zimmermann
2025-09-09 12:44 ` [PATCH v2 4/5] fbcon: Move fbcon callbacks into struct fbcon_bitops Thomas Zimmermann
2025-09-09 12:44 ` [PATCH v2 5/5] fbcon: Streamline setting rotated/unrotated bitops Thomas Zimmermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).