drm/udl: Remove flags field from struct udl_gem_object
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 7 Nov 2019 09:43:04 +0000 (10:43 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 8 Nov 2019 11:29:47 +0000 (12:29 +0100)
commit92c4eeb0c9d2e7cc2d9ebd734bdd78cb69f72f88
treebfe3d213f384ff0c001ea3618383d6082c4f8ece
parent165d3448a1a0e8646cf62f2e31a0602651a81a60
drm/udl: Remove flags field from struct udl_gem_object

The flags field in struct udl_gem controls mapping parameters: cached
access for local buffers, write-combined access for imported buffers.

We can drop the field and distinguish both cases by testing whether
struct drm_gem_object.import_attach is NULL.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191107094307.19870-2-tzimmermann@suse.de
drivers/gpu/drm/udl/udl_dmabuf.c
drivers/gpu/drm/udl/udl_drv.h
drivers/gpu/drm/udl/udl_gem.c