summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/solomon/ssd130x.h
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javierm@redhat.com>2023-06-09 20:09:39 +0300
committerJavier Martinez Canillas <javierm@redhat.com>2023-06-16 00:50:45 +0300
commit49d7d581ceaf4cf85443868b825d45903b4b634c (patch)
tree9b4f515f6e4a5b3622893bd712a430474dfafb0f /drivers/gpu/drm/solomon/ssd130x.h
parent179a790aaf2a01279c358bf4f4f62b6958473cd5 (diff)
downloadlinux-49d7d581ceaf4cf85443868b825d45903b4b634c.tar.xz
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
Diffstat (limited to 'drivers/gpu/drm/solomon/ssd130x.h')
-rw-r--r--drivers/gpu/drm/solomon/ssd130x.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/solomon/ssd130x.h b/drivers/gpu/drm/solomon/ssd130x.h
index 87968b3e7fb8..161588b1cc4d 100644
--- a/drivers/gpu/drm/solomon/ssd130x.h
+++ b/drivers/gpu/drm/solomon/ssd130x.h
@@ -89,6 +89,9 @@ struct ssd130x_device {
u8 col_end;
u8 page_start;
u8 page_end;
+
+ u8 *buffer;
+ u8 *data_array;
};
extern const struct ssd130x_deviceinfo ssd130x_variants[];