Re: [PATCH] video: mipi_dbi: fix swapped width and height in mipi_dbi_blank

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>

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

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 |




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux