drm/tinydrm: Add tinydrm_xrgb8888_to_gray8() helper
authorNoralf Trønnes <noralf@tronnes.org>
Wed, 31 May 2017 20:26:53 +0000 (22:26 +0200)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 8 Oct 2017 01:08:23 +0000 (01:08 +0000)
commitced8c551116df9597e34ec1574a7c757c64c2e1c
treee677a38d15eb759282da75a0c957f137467c9153
parent232d202278c256ecf6de9038e11da6b8220cde9f
drm/tinydrm: Add tinydrm_xrgb8888_to_gray8() helper

Drm has no monochrome or greyscale support so add a conversion
from the common format XR24.

Also reorder includes into the common order.

Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
[rebase on 4.9]
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c
include/drm/tinydrm/tinydrm-helpers.h