drm/tinydrm: Generalize tinydrm_xrgb8888_to_gray8()
authorDavid Lechner <david@lechnology.com>
Mon, 7 Aug 2017 17:39:37 +0000 (12:39 -0500)
committerNoralf Trønnes <noralf@tronnes.org>
Wed, 9 Aug 2017 15:55:50 +0000 (17:55 +0200)
commit8941a7cbcc5f06fb9e1d105911c928766d742861
treefa399310a397a5b9b0d47eb4df763b0cbbeef1f2
parentaadd41485bb227a16f964833a4fd55c091f4a729
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
drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c
drivers/gpu/drm/tinydrm/repaper.c
include/drm/tinydrm/tinydrm-helpers.h