drm/amdgpu: refine the scheduler job type conversion
authorJunwei Zhang <Jerry.Zhang@amd.com>
Wed, 9 Sep 2015 01:21:19 +0000 (09:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Sep 2015 21:23:36 +0000 (17:23 -0400)
commita6db8a33e164ae72fb5429ab637e8cfee057a722
tree364add4fa33036b3de4242f0139b998c757c7733
parent4c7eb91cae88fd2aa101750d6825b4176f85ffb2
drm/amdgpu: refine the scheduler job type conversion

Use container_of rather than casting.

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: David Zhou <david1.zhou@amd.com>
Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c