mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
drm/amdgpu: Clean up errors in jpeg_v2_5.c
Fix the following errors reported by checkpatch:
ERROR: space required before the open parenthesis '('
ERROR: that open brace { should be on the previous line
Signed-off-by: chenxuebing <chenxb_99091@126.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
7230ebeb0a
commit
0b0fb6da9b
@@ -551,7 +551,7 @@ static int jpeg_v2_5_set_powergating_state(void *handle,
|
||||
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
||||
int ret;
|
||||
|
||||
if(state == adev->jpeg.cur_state)
|
||||
if (state == adev->jpeg.cur_state)
|
||||
return 0;
|
||||
|
||||
if (state == AMD_PG_STATE_GATE)
|
||||
@@ -559,7 +559,7 @@ static int jpeg_v2_5_set_powergating_state(void *handle,
|
||||
else
|
||||
ret = jpeg_v2_5_start(adev);
|
||||
|
||||
if(!ret)
|
||||
if (!ret)
|
||||
adev->jpeg.cur_state = state;
|
||||
|
||||
return ret;
|
||||
@@ -754,8 +754,7 @@ static void jpeg_v2_5_set_irq_funcs(struct amdgpu_device *adev)
|
||||
}
|
||||
}
|
||||
|
||||
const struct amdgpu_ip_block_version jpeg_v2_5_ip_block =
|
||||
{
|
||||
const struct amdgpu_ip_block_version jpeg_v2_5_ip_block = {
|
||||
.type = AMD_IP_BLOCK_TYPE_JPEG,
|
||||
.major = 2,
|
||||
.minor = 5,
|
||||
@@ -763,8 +762,7 @@ const struct amdgpu_ip_block_version jpeg_v2_5_ip_block =
|
||||
.funcs = &jpeg_v2_5_ip_funcs,
|
||||
};
|
||||
|
||||
const struct amdgpu_ip_block_version jpeg_v2_6_ip_block =
|
||||
{
|
||||
const struct amdgpu_ip_block_version jpeg_v2_6_ip_block = {
|
||||
.type = AMD_IP_BLOCK_TYPE_JPEG,
|
||||
.major = 2,
|
||||
.minor = 6,
|
||||
|
||||
Reference in New Issue
Block a user