OSDN Git Service

drm/ssd130x: Don't allocate buffers on each plane update
authorJavier Martinez Canillas <javierm@redhat.com>
Fri, 9 Jun 2023 17:09:39 +0000 (19:09 +0200)
committerJavier Martinez Canillas <javierm@redhat.com>
Thu, 15 Jun 2023 21:50:45 +0000 (23:50 +0200)
commit49d7d581ceaf4cf85443868b825d45903b4b634c
tree9b4f515f6e4a5b3622893bd712a430474dfafb0f
parent179a790aaf2a01279c358bf4f4f62b6958473cd5
drm/ssd130x: Don't allocate buffers on each plane update

The resolutions for these panels are fixed and defined in the Device Tree,
so there's no point to allocate the buffers on each plane update and that
can just be done once.

Let's do the allocation and free on the encoder enable and disable helpers
since that's where others initialization and teardown operations are done.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230609170941.1150941-5-javierm@redhat.com
drivers/gpu/drm/solomon/ssd130x.c
drivers/gpu/drm/solomon/ssd130x.h