mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git
synced 2025-09-28 17:40:21 +10:00
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 <sunran001@208suo.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
e2515e2b90
commit
665ba81b4a
@ -473,7 +473,7 @@ static void vcn_v1_0_disable_clock_gating(struct amdgpu_device *adev)
|
||||
if (adev->cg_flags & AMD_CG_SUPPORT_VCN_MGCG)
|
||||
data |= 1 << UVD_CGC_CTRL__DYN_CLOCK_MODE__SHIFT;
|
||||
else
|
||||
data &= ~ UVD_CGC_CTRL__DYN_CLOCK_MODE_MASK;
|
||||
data &= ~UVD_CGC_CTRL__DYN_CLOCK_MODE_MASK;
|
||||
|
||||
data |= 1 << UVD_CGC_CTRL__CLK_GATE_DLY_TIMER__SHIFT;
|
||||
data |= 4 << UVD_CGC_CTRL__CLK_OFF_DELAY__SHIFT;
|
||||
@ -1772,7 +1772,7 @@ static int vcn_v1_0_set_powergating_state(void *handle,
|
||||
int ret;
|
||||
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
||||
|
||||
if(state == adev->vcn.cur_state)
|
||||
if (state == adev->vcn.cur_state)
|
||||
return 0;
|
||||
|
||||
if (state == AMD_PG_STATE_GATE)
|
||||
@ -1780,7 +1780,7 @@ static int vcn_v1_0_set_powergating_state(void *handle,
|
||||
else
|
||||
ret = vcn_v1_0_start(adev);
|
||||
|
||||
if(!ret)
|
||||
if (!ret)
|
||||
adev->vcn.cur_state = state;
|
||||
return ret;
|
||||
}
|
||||
@ -2065,8 +2065,7 @@ static void vcn_v1_0_set_irq_funcs(struct amdgpu_device *adev)
|
||||
adev->vcn.inst->irq.funcs = &vcn_v1_0_irq_funcs;
|
||||
}
|
||||
|
||||
const struct amdgpu_ip_block_version vcn_v1_0_ip_block =
|
||||
{
|
||||
const struct amdgpu_ip_block_version vcn_v1_0_ip_block = {
|
||||
.type = AMD_IP_BLOCK_TYPE_VCN,
|
||||
.major = 1,
|
||||
.minor = 0,
|
||||
|
Loading…
Reference in New Issue
Block a user