mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: "Sven Püschel" <s.pueschel@pengutronix.de>, barebox@lists.infradead.org
Subject: Re: [PATCH] video: mipi_dbi: fix swapped width and height in mipi_dbi_blank
Date: Tue, 10 Dec 2024 09:07:37 +0100	[thread overview]
Message-ID: <256ba4fa-ecfe-4019-8f59-2b742b0b7923@pengutronix.de> (raw)
In-Reply-To: <20241210080519.1236134-1-s.pueschel@pengutronix.de>

On 10.12.24 09:05, Sven Püschel wrote:
> 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>

Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>

Good catch, thanks,
Ahmad

> ---
>  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;
>  


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



  reply	other threads:[~2024-12-10  8:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-10  8:05 Sven Püschel
2024-12-10  8:07 ` Ahmad Fatoum [this message]
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=256ba4fa-ecfe-4019-8f59-2b742b0b7923@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=s.pueschel@pengutronix.de \
    /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