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

Thomas Zimmermann posted 5 patches 3 weeks, 2 days ago
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(-)
[PATCH v2 0/5] fbcon: Move bitops callbacks into separate struct
Posted by Thomas Zimmermann 3 weeks, 2 days ago
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