summaryrefslogtreecommitdiffstats
path: root/include/drm/tinydrm/tinydrm-helpers.h
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2017-06-08 17:14:34 +0200
committerNoralf Trønnes <noralf@tronnes.org>2017-07-14 19:29:59 +0200
commit379ea9a1a59a5a32c8db6f164e80a3fd00cb3781 (patch)
tree9eb41b7750a5e7f4924ff59b20aa22dea155ea09 /include/drm/tinydrm/tinydrm-helpers.h
parentdt-bindings: Add Pervasive Displays RePaper bindings (diff)
downloadlinux-379ea9a1a59a5a32c8db6f164e80a3fd00cb3781.tar.xz
linux-379ea9a1a59a5a32c8db6f164e80a3fd00cb3781.zip
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> Link: http://patchwork.freedesktop.org/patch/msgid/1496934875-51984-4-git-send-email-noralf@tronnes.org
Diffstat (limited to 'include/drm/tinydrm/tinydrm-helpers.h')
-rw-r--r--include/drm/tinydrm/tinydrm-helpers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/tinydrm/tinydrm-helpers.h b/include/drm/tinydrm/tinydrm-helpers.h
index 9b9b6cfe3ba5..a6c387f91eff 100644
--- a/include/drm/tinydrm/tinydrm-helpers.h
+++ b/include/drm/tinydrm/tinydrm-helpers.h
@@ -43,6 +43,7 @@ void tinydrm_swab16(u16 *dst, void *vaddr, struct drm_framebuffer *fb,
void tinydrm_xrgb8888_to_rgb565(u16 *dst, void *vaddr,
struct drm_framebuffer *fb,
struct drm_clip_rect *clip, bool swap);
+int tinydrm_xrgb8888_to_gray8(u8 *dst, struct drm_framebuffer *fb);
struct backlight_device *tinydrm_of_find_backlight(struct device *dev);
int tinydrm_enable_backlight(struct backlight_device *backlight);