]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitebf84253b449e2069e1f3ea56640d71831bef7d2
tree3ea3877c957c60446f02712dda82b5e0fd431d0f
parent40a2ef85cdb2f9cf44c07f244d561bdce0378cba
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