OpenCloudOS-Kernel/drivers/gpu/drm/solomon
Geert Uytterhoeven 4442ac1af1
drm/ssd130x: Reduce temporary buffer sizes
ssd130x_clear_screen() allocates a temporary buffer sized to hold one
byte per pixel, while it only needs to hold one bit per pixel.

ssd130x_fb_blit_rect() allocates a temporary buffer sized to hold one
byte per pixel for the whole frame buffer, while it only needs to hold
one bit per pixel for the part that is to be updated.
Pass dst_pitch to drm_fb_xrgb8888_to_mono(), as we have already
calculated it anyway.

Fixes: a61732e808 ("drm: Add driver for Solomon SSD130x OLED displays")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220317081830.1211400-5-geert@linux-m68k.org
2022-03-17 12:29:43 +01:00
..
Kconfig drm/solomon: Make DRM_SSD130X depends on MMU 2022-03-16 15:54:42 +01:00
Makefile
ssd130x-i2c.c
ssd130x.c drm/ssd130x: Reduce temporary buffer sizes 2022-03-17 12:29:43 +01:00
ssd130x.h