]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ssd130x: ensure ssd132x pitch is correct
authorJohn Keeping <jkeeping@inmusicbrands.com>
Wed, 15 Jan 2025 11:01:38 +0000 (11:01 +0000)
committerJavier Martinez Canillas <javierm@redhat.com>
Thu, 16 Jan 2025 09:48:47 +0000 (10:48 +0100)
commit229adcffdb54b13332d2afd2dc5d203418d50908
treec5a8c63a8277adf3fdc27162ae00c627802c5543
parent1e14484677c8e87548f5f0d4eb8800e408004404
drm/ssd130x: ensure ssd132x pitch is correct

The bounding rectangle is adjusted to ensure it aligns to
SSD132X_SEGMENT_WIDTH, which may adjust the pitch.  Calculate the pitch
after aligning the left and right edge.

Fixes: fdd591e00a9c ("drm/ssd130x: Add support for the SSD132x OLED controller family")
Signed-off-by: John Keeping <jkeeping@inmusicbrands.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250115110139.1672488-3-jkeeping@inmusicbrands.com
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
drivers/gpu/drm/solomon/ssd130x.c