drm/amdgpu: Clean up errors in vcn_v4_0.c
Subsystems (2)
PATCH 1/1 drm/amdgpu: Clean up errors in vcn_v4_0.c
Fix the following errors reported by checkpatch:
spaces required around that '==' (ctx:VxV)
ERROR: space required before the open parenthesis '('
ERROR: that open brace { should be on the previous line
Signed-off-by Ran Sun <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c +5 -6
@@ -1139,11 +1139,11 @@ static int vcn_v4_0_start(struct amdgpu_device *adev)if (status &2 )break ;mdelay (10 ); -if (amdgpu_emu_mode==1 ) +if (amdgpu_emu_mode ==1 )msleep (1 ); } -if (amdgpu_emu_mode==1 ) { +if (amdgpu_emu_mode ==1 ) { r =-1 ;if (status &2 ) { r =0 ;
@@ -1959,7 +1959,7 @@ static int vcn_v4_0_set_powergating_state(void *handle, enum amd_powergating_stareturn 0 ; } -if (state == adev->vcn.cur_state) +if (state == adev->vcn.cur_state)return 0 ;if (state ==AMD_PG_STATE_GATE )
@@ -1967,7 +1967,7 @@ static int vcn_v4_0_set_powergating_state(void *handle, enum amd_powergating_staelse ret =vcn_v4_0_start (adev); -if (!ret) +if (!ret) adev->vcn.cur_state = state;return ret;
@@ -2101,8 +2101,7 @@ static const struct amd_ip_funcs vcn_v4_0_ip_funcs = { .set_powergating_state = vcn_v4_0_set_powergating_state, }; -const struct amdgpu_ip_block_version vcn_v4_0_ip_block = -{ +const struct amdgpu_ip_block_version vcn_v4_0_ip_block = { .type =AMD_IP_BLOCK_TYPE_VCN , .major =4 , .minor =0 ,
Signature · 1 line
2.17.1
Alex Deucher
AppliedApplied. Thanks!
Quoted 61 lines · Ran Sun
Fix the following errors reported by checkpatch:
spaces required around that '==' (ctx:VxV)
ERROR: space required before the open parenthesis '('
ERROR: that open brace { should be on the previous lineSigned-off-by Ran Sun <[email protected]>--- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c +5
-7@@ -1139,11 +1139,11 @@ static int vcn_v4_0_start(struct amdgpu_device *adev)if (status &2 )break ;mdelay (10 ); -if (amdgpu_emu_mode==1 ) +if (amdgpu_emu_mode ==1 )msleep (1 ); } -if (amdgpu_emu_mode==1 ) { +if (amdgpu_emu_mode ==1 ) { r =-1 ;if (status &2 ) { r =0 ;@@ -1959,7 +1959,7 @@ static int vcn_v4_0_set_powergating_state(void *handle, enum amd_powergating_stareturn 0 ; } -if (state == adev->vcn.cur_state) +if (state == adev->vcn.cur_state)return 0 ;if (state ==AMD_PG_STATE_GATE )@@ -1967,7 +1967,7 @@ static int vcn_v4_0_set_powergating_state(void *handle, enum amd_powergating_staelse ret =vcn_v4_0_start (adev); -if (!ret) +if (!ret) adev->vcn.cur_state = state;return ret;@@ -2101,8 +2101,7 @@ static const struct amd_ip_funcs vcn_v4_0_ip_funcs = { .set_powergating_state = vcn_v4_0_set_powergating_state, }; -const struct amdgpu_ip_block_version vcn_v4_0_ip_block = -{ +const struct amdgpu_ip_block_version vcn_v4_0_ip_block = { .type =AMD_IP_BLOCK_TYPE_VCN , .major =4 , .minor =0 , --2.17.1