From: "Sven Püschel" <s.pueschel@pengutronix.de>
To: barebox@lists.infradead.org
Cc: "Sven Püschel" <s.pueschel@pengutronix.de>
Subject: [PATCH] video: mipi_dbi: fix swapped width and height in mipi_dbi_blank
Date: Tue, 10 Dec 2024 09:05:19 +0100 [thread overview]
Message-ID: <20241210080519.1236134-1-s.pueschel@pengutronix.de> (raw)
Fix swapped width and height values in the mipi_dbi_blank function. This
caused a non quadratic display not being cleared entirely when disabling
the framebuffer device.
Signed-off-by: Sven Püschel <s.pueschel@pengutronix.de>
---
drivers/video/mipi_dbi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/video/mipi_dbi.c b/drivers/video/mipi_dbi.c
index c202ecc1c7..1e2883020b 100644
--- a/drivers/video/mipi_dbi.c
+++ b/drivers/video/mipi_dbi.c
@@ -307,8 +307,8 @@ EXPORT_SYMBOL(mipi_dbi_enable_flush);
static void mipi_dbi_blank(struct mipi_dbi_dev *dbidev)
{
- u16 height = dbidev->mode.xres;
- u16 width = dbidev->mode.yres;
+ u16 height = dbidev->mode.yres;
+ u16 width = dbidev->mode.xres;
struct mipi_dbi *dbi = &dbidev->dbi;
size_t len = width * height * 2;
--
2.39.5
next reply other threads:[~2024-12-10 8:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-10 8:05 Sven Püschel [this message]
2024-12-10 8:07 ` Ahmad Fatoum
2024-12-12 9:05 ` Sascha Hauer
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=20241210080519.1236134-1-s.pueschel@pengutronix.de \
--to=s.pueschel@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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