]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/ssd130x: Fix pitch calculation in ssd130x_fb_blit_rect()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 13 Jul 2023 13:17:09 +0000 (15:17 +0200)
committerJavier Martinez Canillas <javierm@redhat.com>
Fri, 21 Jul 2023 22:33:49 +0000 (00:33 +0200)
commit27564c61ab1dbd47ba232949f87c8a1043210993
tree0247f1fc18ee59fd9a59e359abae34cb95e4dce2
parent85a241cb128ac449b301d5b7da16a7c11f5fc094
drm/ssd130x: Fix pitch calculation in ssd130x_fb_blit_rect()

The page height must be taken into account only for vertical coordinates
and heights, not for horizontal coordinates and widths.

Fixes: 179a790aaf2a ("drm/ssd130x: Set the page height value in the device info data")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/54deec2ec533e90544faa8c60a0c2518c58f3e9c.1689252746.git.geert@linux-m68k.org
drivers/gpu/drm/solomon/ssd130x.c