]> git.baikalelectronics.ru Git - kernel.git/commit
drm/format-helper: Implement drm_fb_swab() with per-line helpers
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 27 Apr 2022 14:14:06 +0000 (16:14 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 5 May 2022 06:53:56 +0000 (08:53 +0200)
commit23c377540d83e514f6717f0961443d6601c4338b
treeb6f33b270cbc97b4e590cdd3548dd99ca6424c23
parentf8c031742d346eae4fb436e25cde23f4b9f67953
drm/format-helper: Implement drm_fb_swab() with per-line helpers

Replace the inner loop of drm_fb_swab() with helper functions that
swap the bytes in each pixel. This will allow to share the outer
loop with other conversion helpers.

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