Skip to content

Commit 665ba81

Browse files
Ran Sunalexdeucher
authored andcommitted
drm/amdgpu/jpeg: Clean up errors in vcn_v1_0.c
Fix the following errors reported by checkpatch: ERROR: space required before the open parenthesis '(' ERROR: space prohibited after that '~' (ctx:WxW) Signed-off-by: Ran Sun <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent e2515e2 commit 665ba81

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ static void vcn_v1_0_disable_clock_gating(struct amdgpu_device *adev)
473473
if (adev->cg_flags & AMD_CG_SUPPORT_VCN_MGCG)
474474
data |= 1 << UVD_CGC_CTRL__DYN_CLOCK_MODE__SHIFT;
475475
else
476-
data &= ~ UVD_CGC_CTRL__DYN_CLOCK_MODE_MASK;
476+
data &= ~UVD_CGC_CTRL__DYN_CLOCK_MODE_MASK;
477477

478478
data |= 1 << UVD_CGC_CTRL__CLK_GATE_DLY_TIMER__SHIFT;
479479
data |= 4 << UVD_CGC_CTRL__CLK_OFF_DELAY__SHIFT;
@@ -1772,15 +1772,15 @@ static int vcn_v1_0_set_powergating_state(void *handle,
17721772
int ret;
17731773
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
17741774

1775-
if(state == adev->vcn.cur_state)
1775+
if (state == adev->vcn.cur_state)
17761776
return 0;
17771777

17781778
if (state == AMD_PG_STATE_GATE)
17791779
ret = vcn_v1_0_stop(adev);
17801780
else
17811781
ret = vcn_v1_0_start(adev);
17821782

1783-
if(!ret)
1783+
if (!ret)
17841784
adev->vcn.cur_state = state;
17851785
return ret;
17861786
}
@@ -2065,8 +2065,7 @@ static void vcn_v1_0_set_irq_funcs(struct amdgpu_device *adev)
20652065
adev->vcn.inst->irq.funcs = &vcn_v1_0_irq_funcs;
20662066
}
20672067

2068-
const struct amdgpu_ip_block_version vcn_v1_0_ip_block =
2069-
{
2068+
const struct amdgpu_ip_block_version vcn_v1_0_ip_block = {
20702069
.type = AMD_IP_BLOCK_TYPE_VCN,
20712070
.major = 1,
20722071
.minor = 0,

0 commit comments

Comments
 (0)