drm/omap: gem: Merge __omap_gem_get_pages() and omap_gem_attach_pages()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 25 May 2018 16:39:21 +0000 (19:39 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 28 Jun 2018 10:41:05 +0000 (13:41 +0300)
commit2491244d7709d4e35f61d75ed3f6b4ea31b0a6f3
treed3067073d6f80de1607a4ebda0e6229c8a8e4d31
parent620063e10ed48c63027c4f59dab97d2ead67f9f1
drm/omap: gem: Merge __omap_gem_get_pages() and omap_gem_attach_pages()

The __omap_gem_get_pages() function is a wrapper around
omap_gem_attach_pages() that returns the omap_obj->pages pointer through
a function argument. Some callers don't need the pages pointer, and all
of them can access omap_obj->pages directly. To simplify the code merge
the __omap_gem_get_pages() wrapper with omap_gem_attach_pages() and
update the callers accordingly.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_gem.c