]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ssd130x: fix ssd132x encoding
authorJohn Keeping <jkeeping@inmusicbrands.com>
Wed, 15 Jan 2025 11:01:37 +0000 (11:01 +0000)
committerJavier Martinez Canillas <javierm@redhat.com>
Thu, 16 Jan 2025 09:48:46 +0000 (10:48 +0100)
commit1e14484677c8e87548f5f0d4eb8800e408004404
treec51748d2634f659ff403c738f45e694a1e719558
parent00728273bdf1001f8d2f7b65bc398000d7defe0b
drm/ssd130x: fix ssd132x encoding

The ssd132x buffer is encoded one pixel per nibble, with two pixels in
each byte.  When encoding an 8-bit greyscale input, take the top 4-bits
as the value and ensure the two pixels are distinct and do not overwrite
each other.

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-2-jkeeping@inmusicbrands.com
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
drivers/gpu/drm/solomon/ssd130x.c