drm/v3d: replace obj lookup steps with drm_gem_objects_lookup
authorMelissa Wen <mwen@igalia.com>
Mon, 5 Dec 2022 13:55:38 +0000 (12:55 -0100)
committerMelissa Wen <melissa.srw@gmail.com>
Mon, 19 Dec 2022 00:08:20 +0000 (23:08 -0100)
commit5d9306052180ec2b900669ed8c1172fe00f8dd1a
treed00d841e121f472706986972afa7d726ef3eb519
parentf98c5ec25162fbb019212c64cdd3bfde8af1fac7
drm/v3d: replace obj lookup steps with drm_gem_objects_lookup

As v3d_lookup_bos() performs the same steps as drm_gem_objects_lookup(),
replace the explicit code in v3d to simply use the DRM function.

Signed-off-by: Melissa Wen <mwen@igalia.com>
Reviewed-by: MaĆ­ra Canal <mcanal@igalia.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221205135538.3545051-3-mwen@igalia.com
drivers/gpu/drm/v3d/v3d_gem.c