[PATCH 1/5] drm/amdgpu/rlc: unify rlc function into structure

Christian König ckoenig.leichtzumerken at gmail.com
Wed Oct 10 12:04:36 UTC 2018


Am 10.10.2018 um 13:42 schrieb likun Gao:
> From: Likun Gao <Likun.Gao at amd.com>
>
> Put function rlc_init,rlc_fini,rlc_resume,rlc_stop,rlc_start into structure
> amdgpu_rlc_funcs.
>
> Signed-off-by: Likun Gao <Likun.Gao at amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 6 ++++++
>   1 file changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
> index b61b5c1..bb7b1ad 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
> @@ -41,6 +41,12 @@
>   struct amdgpu_rlc_funcs {
>   	void (*enter_safe_mode)(struct amdgpu_device *adev);
>   	void (*exit_safe_mode)(struct amdgpu_device *adev);
> +	int  (*rlc_init)(struct amdgpu_device *adev);
> +	void (*rlc_fini)(struct amdgpu_device *adev);
> +	int  (*rlc_resume)(struct amdgpu_device *adev);
> +	void (*rlc_stop)(struct amdgpu_device *adev);
> +	void (*rlc_reset)(struct amdgpu_device *adev);
> +	void (*rlc_start)(struct amdgpu_device *adev);

Please drop the rlc_ prefix to all those members. The structure name 
already denotes it as rlc functions.

Christian.

>   };
>   
>   struct amdgpu_rlc {



More information about the amd-gfx mailing list