summaryrefslogtreecommitdiffstats
path: root/include/drm/tinydrm/tinydrm-helpers.h
Commit message (Collapse)AuthorAgeFilesLines
* drm/tinydrm: Generalize tinydrm_xrgb8888_to_gray8()David Lechner2017-08-091-1/+2
| | | | | | | | | | | | | 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
* drm/tinydrm: Add tinydrm_xrgb8888_to_gray8() helperNoralf Trønnes2017-07-141-0/+1
| | | | | | | | | | | 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
* drm/tinydrm: helpers: Properly fix backlight dependencyNoralf Trønnes2017-02-241-19/+0
| | | | | | | | | 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>
* drm/tinydrm: Add helper functionsNoralf Trønnes2017-02-181-0/+100
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>
OpenPOWER on IntegriCloud