drm/vmwgfx: Refactor surface_define to use vmw_surface_metadata
authorDeepak Rawat <drawat.floss@gmail.com>
Mon, 29 Apr 2019 21:55:44 +0000 (14:55 -0700)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 23 Mar 2020 21:48:56 +0000 (22:48 +0100)
commit504901dbb0b565fcbe466b0c56f3131586df5afd
tree3ea3877c957c60446f02712dda82b5e0fd431d0f
parent26b82873a4a41cd699001ea634e2fc789789e5bd
drm/vmwgfx: Refactor surface_define to use vmw_surface_metadata

Makes surface_define cleaner by sending vmw_surface_metadata instead of
all the arguments individually.

v2: fix uninitialized return value, error message

Signed-off-by: Deepak Rawat <drawat.floss@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Thomas Hellström (VMware) <thomas_os@shipmail.org>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Roland Scheidegger <sroland@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c