Commit 665ba81b authored by Ran Sun's avatar Ran Sun Committed by Alex Deucher

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: default avatarRan Sun <sunran001@208suo.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e2515e2b
...@@ -473,7 +473,7 @@ static void vcn_v1_0_disable_clock_gating(struct amdgpu_device *adev) ...@@ -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) if (adev->cg_flags & AMD_CG_SUPPORT_VCN_MGCG)
data |= 1 << UVD_CGC_CTRL__DYN_CLOCK_MODE__SHIFT; data |= 1 << UVD_CGC_CTRL__DYN_CLOCK_MODE__SHIFT;
else 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 |= 1 << UVD_CGC_CTRL__CLK_GATE_DLY_TIMER__SHIFT;
data |= 4 << UVD_CGC_CTRL__CLK_OFF_DELAY__SHIFT; data |= 4 << UVD_CGC_CTRL__CLK_OFF_DELAY__SHIFT;
...@@ -1772,7 +1772,7 @@ static int vcn_v1_0_set_powergating_state(void *handle, ...@@ -1772,7 +1772,7 @@ static int vcn_v1_0_set_powergating_state(void *handle,
int ret; int ret;
struct amdgpu_device *adev = (struct amdgpu_device *)handle; struct amdgpu_device *adev = (struct amdgpu_device *)handle;
if(state == adev->vcn.cur_state) if (state == adev->vcn.cur_state)
return 0; return 0;
if (state == AMD_PG_STATE_GATE) if (state == AMD_PG_STATE_GATE)
...@@ -1780,7 +1780,7 @@ static int vcn_v1_0_set_powergating_state(void *handle, ...@@ -1780,7 +1780,7 @@ static int vcn_v1_0_set_powergating_state(void *handle,
else else
ret = vcn_v1_0_start(adev); ret = vcn_v1_0_start(adev);
if(!ret) if (!ret)
adev->vcn.cur_state = state; adev->vcn.cur_state = state;
return ret; return ret;
} }
...@@ -2065,8 +2065,7 @@ static void vcn_v1_0_set_irq_funcs(struct amdgpu_device *adev) ...@@ -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; 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, .type = AMD_IP_BLOCK_TYPE_VCN,
.major = 1, .major = 1,
.minor = 0, .minor = 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment