drm/amdgpu: Avoid direct cast to amdgpu_ttm_tt
authorRajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Wed, 20 Apr 2022 13:37:56 +0000 (09:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Aug 2022 19:41:23 +0000 (15:41 -0400)
commitc4c10a68e82b8a03df234ee744acabcc648df270
treee50bb0b6545fca1405343a57dee1a86cc31a720f
parent4e64b529c5b04e7944b41de554ee686ecab00744
drm/amdgpu: Avoid direct cast to amdgpu_ttm_tt

For typesafety, use container_of() instead of implicit cast from struct
ttm_tt to struct amdgpu_ttm_tt.

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c