commit | 1c5aafa6eee2d5712f774676d407e5ab6dae9a1b | [log] [tgz] |
---|---|---|
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | Tue Apr 16 14:14:52 2013 +0200 |
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | Sat Jun 08 09:14:03 2013 +0200 |
tree | 5cb8d947cca86c336977ad86a5e0f76eac0e0533 | |
parent | 328a4719b6a0930721b5f8d5c69993d3b6e3913f [diff] |
drm/gem: Split drm_gem_mmap() into object search and object mapping The drm_gem_mmap() function first finds the GEM object to be mapped based on the fake mmap offset and then maps the object. Split the object mapping code into a standalone drm_gem_mmap_obj() function that can be used to implement dma-buf mmap() operations. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Rob Clark <robdclark@gmail.com>