fbcon: Move bitops callbacks into separate struct
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 0 repliesNew
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | fbcon: Fix empty lines in fbcon.hdrivers/ | +1 | 0 replies | |
| 2/5 | fbcon: Rename struct fbcon_ops to struct fbcon_pardrivers/ drivers/ drivers/ +7 more | +541 | 0 replies | |
| 3/5 | fbcon: Set rotate_font callback with related callbacksdrivers/ drivers/ drivers/ +2 more | +7 | 0 replies | |
| 4/5 | fbcon: Move fbcon callbacks into struct fbcon_bitopsdrivers/ drivers/ drivers/ +4 more | +94 | 0 replies | |
| 5/5 | fbcon: Streamline setting rotated/unrotated bitopsdrivers/ drivers/ drivers/ +5 more | +38 | 0 replies |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Sam Ravnborg |
|---|---|
| 1/5 | R-b |
| 2/5 | R-b |
| 3/5 | R-b |
| 4/5 | R-b |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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