David Lechner
8941a7cbcc
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
2017-08-09 17:55:50 +02:00
Noralf Trønnes
379ea9a1a5
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
2017-07-14 19:29:59 +02:00
Noralf Trønnes
7fef80a4b9
drm/tinydrm: helpers: Properly fix backlight dependency
...
BACKLIGHT_CLASS_DEVICE was selected in the last version of the
tinydrm patchset to fix the backlight dependency, but the
ifdef CONFIG_BACKLIGHT_CLASS_DEVICE was forgotten. Fix that.
Signed-off-by: Noralf Trønnes <noralf@tronnes.org >
Signed-off-by: Dave Airlie <airlied@redhat.com >
2017-02-24 12:09:00 +10:00
Noralf Trønnes
9f69eb5c36
drm/tinydrm: Add helper functions
...
Add common functionality needed by many tinydrm drivers.
Signed-off-by: Noralf Trønnes <noralf@tronnes.org >
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch >
Acked-by: Thierry Reding <treding@nvidia.com >
2017-02-18 18:04:59 +01:00