diff options
author | Javier Martinez Canillas <javierm@redhat.com> | 2023-06-09 20:09:40 +0300 |
---|---|---|
committer | Javier Martinez Canillas <javierm@redhat.com> | 2023-06-16 00:50:46 +0300 |
commit | e254b584dbc0682b6aceeece052ccf25a52049d1 (patch) | |
tree | 01c3d54e2427c8428cb656a50fb0cd29637b96ed /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
parent | 49d7d581ceaf4cf85443868b825d45903b4b634c (diff) | |
download | linux-e254b584dbc0682b6aceeece052ccf25a52049d1.tar.xz |
drm/ssd130x: Remove hardcoded bits-per-pixel in ssd130x_buf_alloc()
The driver only supports OLED controllers that have a native DRM_FORMAT_C1
pixel format and that is why it has harcoded a division of the width by 8.
But the driver might be extended to support devices that have a different
pixel format. So it's better to use the struct drm_format_info helpers to
compute the size of the buffer, used to store the pixels in native format.
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-6-javierm@redhat.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions