Skip to content

Commit 20c7435

Browse files
Ran Sunalexdeucher
authored andcommitted
drm/amdgpu: Clean up errors in vcn_v3_0.c
Fix the following errors reported by checkpatch: ERROR: space required before the open brace '{' ERROR: "foo * bar" should be "foo *bar" ERROR: space required before the open parenthesis '(' ERROR: that open brace { should be on the previous line Signed-off-by: Ran Sun <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 7bb8c4f commit 20c7435

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ static int vcn_v3_0_start(struct amdgpu_device *adev)
11051105
if (adev->vcn.harvest_config & (1 << i))
11061106
continue;
11071107

1108-
if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG){
1108+
if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) {
11091109
r = vcn_v3_0_start_dpg_mode(adev, i, adev->vcn.indirect_sram);
11101110
continue;
11111111
}
@@ -1789,7 +1789,7 @@ static int vcn_v3_0_dec_msg(struct amdgpu_cs_parser *p, struct amdgpu_job *job,
17891789
struct amdgpu_bo *bo;
17901790
uint64_t start, end;
17911791
unsigned int i;
1792-
void * ptr;
1792+
void *ptr;
17931793
int r;
17941794

17951795
addr &= AMDGPU_GMC_HOLE_MASK;
@@ -2129,15 +2129,15 @@ static int vcn_v3_0_set_powergating_state(void *handle,
21292129
return 0;
21302130
}
21312131

2132-
if(state == adev->vcn.cur_state)
2132+
if (state == adev->vcn.cur_state)
21332133
return 0;
21342134

21352135
if (state == AMD_PG_STATE_GATE)
21362136
ret = vcn_v3_0_stop(adev);
21372137
else
21382138
ret = vcn_v3_0_start(adev);
21392139

2140-
if(!ret)
2140+
if (!ret)
21412141
adev->vcn.cur_state = state;
21422142

21432143
return ret;
@@ -2228,8 +2228,7 @@ static const struct amd_ip_funcs vcn_v3_0_ip_funcs = {
22282228
.set_powergating_state = vcn_v3_0_set_powergating_state,
22292229
};
22302230

2231-
const struct amdgpu_ip_block_version vcn_v3_0_ip_block =
2232-
{
2231+
const struct amdgpu_ip_block_version vcn_v3_0_ip_block = {
22332232
.type = AMD_IP_BLOCK_TYPE_VCN,
22342233
.major = 3,
22352234
.minor = 0,

0 commit comments

Comments
 (0)