From: Thomas Zimmermann <tzimmermann@suse.de>
To: deller@gmx.de, simona@ffwll.ch
Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org,
sashiko-reviews@lists.linux.dev,
Thomas Zimmermann <tzimmermann@suse.de>
Subject: [PATCH 2/2] fbcon: Provide a single implementation of fbcon_set_rotation()
Date: Thu, 26 Nov 2026 17:23:11 +0100 [thread overview]
Message-ID: <20261126163150.91355-3-tzimmermann@suse.de> (raw)
In-Reply-To: <20261126163150.91355-1-tzimmermann@suse.de>
Merge both implmentations of fbcon_set_rotation() into one. In the
case of CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=n, fbcon_display_rotation()
returns FB_ROTATE_UR. So the new code is equivalent to the existing
code.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
---
drivers/video/fbdev/core/fbcon.c | 21 +++++++--------------
1 file changed, 7 insertions(+), 14 deletions(-)
diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c
index 7e39c40abe88..08712611e333 100644
--- a/drivers/video/fbdev/core/fbcon.c
+++ b/drivers/video/fbdev/core/fbcon.c
@@ -206,13 +206,6 @@ static int fbcon_display_rotation(const struct fb_info *info, const struct fbcon
return FB_ROTATE_UR;
}
-static inline void fbcon_set_rotation(struct fb_info *info)
-{
- struct fbcon_par *par = info->fbcon_par;
-
- par->rotate = fbcon_display_rotation(info, par->p);
-}
-
static void fbcon_rotate(struct fb_info *info, u32 rotate)
{
struct fbcon_par *par = info->fbcon_par;
@@ -263,13 +256,6 @@ static int fbcon_display_rotation(const struct fb_info *info, const struct fbcon
return FB_ROTATE_UR;
}
-static inline void fbcon_set_rotation(struct fb_info *info)
-{
- struct fbcon_par *par = info->fbcon_par;
-
- par->rotate = FB_ROTATE_UR;
-}
-
static void fbcon_rotate(struct fb_info *info, u32 rotate)
{
return;
@@ -281,6 +267,13 @@ static void fbcon_rotate_all(struct fb_info *info, u32 rotate)
}
#endif /* CONFIG_FRAMEBUFFER_CONSOLE_ROTATION */
+static void fbcon_set_rotation(struct fb_info *info)
+{
+ struct fbcon_par *par = info->fbcon_par;
+
+ par->rotate = fbcon_display_rotation(info, par->p);
+}
+
static void fbcon_set_bitops(struct fbcon_par *par)
{
switch (par->rotate) {
--
2.56.1
next prev parent reply other threads:[~2026-11-26 16:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 16:23 [PATCH 0/2] fbcon: Fix segfault on re-orientation Thomas Zimmermann
2026-11-26 16:23 ` [PATCH 1/2] fbcon: Don't change shared blitting state for hidden consoles Thomas Zimmermann
2026-11-26 16:53 ` sashiko-bot
2026-11-26 16:23 ` Thomas Zimmermann [this message]
2026-11-26 16:36 ` [PATCH 2/2] fbcon: Provide a single implementation of fbcon_set_rotation() sashiko-bot
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=20261126163150.91355-3-tzimmermann@suse.de \
--to=tzimmermann@suse.de \
--cc=deller@gmx.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.