linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: sam@ravnborg.org, simona@ffwll.ch, deller@gmx.de
Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org,
	Thomas Zimmermann <tzimmermann@suse.de>
Subject: [PATCH v2 0/5] fbcon: Move bitops callbacks into separate struct
Date: Tue,  9 Sep 2025 14:44:40 +0200	[thread overview]
Message-ID: <20250909124616.143365-1-tzimmermann@suse.de> (raw)

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


             reply	other threads:[~2025-09-09 12:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-09 12:44 Thomas Zimmermann [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250909124616.143365-1-tzimmermann@suse.de \
    --to=tzimmermann@suse.de \
    --cc=deller@gmx.de \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.org \
    --cc=simona@ffwll.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).