diff options
author | Noralf Trønnes <noralf@tronnes.org> | 2017-06-08 18:14:34 +0300 |
---|---|---|
committer | Noralf Trønnes <noralf@tronnes.org> | 2017-07-14 20:29:59 +0300 |
commit | 379ea9a1a59a5a32c8db6f164e80a3fd00cb3781 (patch) | |
tree | 9eb41b7750a5e7f4924ff59b20aa22dea155ea09 /include/drm/tinydrm | |
parent | 7f0dc77772821e7889f945105689bf2b67587bfe (diff) | |
download | linux-379ea9a1a59a5a32c8db6f164e80a3fd00cb3781.tar.xz |
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')
-rw-r--r-- | include/drm/tinydrm/tinydrm-helpers.h | 1 |
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); |