drm/format-helper: Add drm_fb_swab()
authorNoralf Trønnes <noralf@tronnes.org>
Sat, 9 May 2020 14:16:16 +0000 (16:16 +0200)
committerNoralf Trønnes <noralf@tronnes.org>
Tue, 26 May 2020 11:33:08 +0000 (13:33 +0200)
commitbd34cea2a0e4b0c7a8e73d6cbaf694b233769d9d
tree8e27cd4e4c4735564756bf7d51a7a97897a47a83
parent64593f2a6fc933bb9a410bc3f8c261f3e57a9601
drm/format-helper: Add drm_fb_swab()

This replaces drm_fb_swab16() with drm_fb_swab() supporting 16 and 32-bit.
Also make pixel line caching optional.

v2:
- Bail out on cpp != 2 && 4 (Sam)

Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200509141619.32970-8-noralf@tronnes.org
drivers/gpu/drm/drm_format_helper.c
drivers/gpu/drm/drm_mipi_dbi.c
include/drm/drm_format_helper.h