Skip to content

fbcon: Move bitops callbacks into separate struct

Thomas Zimmermann dri-devel linux-fbdev lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesNew
  2. v16 patches 11 repliesSuperseded

Changes in v2 from the cover letter

- rename struct fbcon_ops to struct fbcon_par
- drop patch 6

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5fbcon: Fix empty lines in fbcon.hdrivers/video/fbdev/core/fbcon.h+1 -10 replies
2/5fbcon: Rename struct fbcon_ops to struct fbcon_pardrivers/video/fbdev/core/bitblit.c drivers/video/fbdev/core/fbcon.c drivers/video/fbdev/core/fbcon.h +7 more+541 -5520 replies
3/5fbcon: Set rotate_font callback with related callbacksdrivers/video/fbdev/core/fbcon_ccw.c drivers/video/fbdev/core/fbcon_cw.c drivers/video/fbdev/core/fbcon_rotate.c +2 more+7 -30 replies
4/5fbcon: Move fbcon callbacks into struct fbcon_bitopsdrivers/video/fbdev/core/bitblit.c drivers/video/fbdev/core/fbcon.c drivers/video/fbdev/core/fbcon.h +4 more+94 -670 replies
5/5fbcon: Streamline setting rotated/unrotated bitopsdrivers/video/fbdev/core/bitblit.c drivers/video/fbdev/core/fbcon.c drivers/video/fbdev/core/fbcon.h +5 more+38 -320 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchSam Ravnborg
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] fbcon: Move bitops callbacks into separate struct

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(-)
Signature · 1 line
2.51.0