diff options
author | David Lechner <david@lechnology.com> | 2017-08-07 12:39:37 -0500 |
---|---|---|
committer | Noralf Trønnes <noralf@tronnes.org> | 2017-08-09 17:55:50 +0200 |
commit | 8941a7cbcc5f06fb9e1d105911c928766d742861 (patch) | |
tree | fa399310a397a5b9b0d47eb4df763b0cbbeef1f2 /include/drm | |
parent | aadd41485bb227a16f964833a4fd55c091f4a729 (diff) | |
download | linux-8941a7cbcc5f06fb9e1d105911c928766d742861.tar.bz2 |
drm/tinydrm: Generalize tinydrm_xrgb8888_to_gray8()
This adds parameters for vaddr and clip to tinydrm_xrgb8888_to_gray8() to
make it more generic.
dma_buf_{begin,end}_cpu_access() are moved out to the repaper driver.
Return type is change to void to simplify error handling by callers.
Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1502127581-10517-2-git-send-email-david@lechnology.com
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/tinydrm/tinydrm-helpers.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/drm/tinydrm/tinydrm-helpers.h b/include/drm/tinydrm/tinydrm-helpers.h index a6c387f91eff..d554ded60ee9 100644 --- a/include/drm/tinydrm/tinydrm-helpers.h +++ b/include/drm/tinydrm/tinydrm-helpers.h @@ -43,7 +43,8 @@ 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); +void tinydrm_xrgb8888_to_gray8(u8 *dst, void *vaddr, struct drm_framebuffer *fb, + struct drm_clip_rect *clip); struct backlight_device *tinydrm_of_find_backlight(struct device *dev); int tinydrm_enable_backlight(struct backlight_device *backlight); |