[PATCH] drm/amdgpu: Clean up errors in jpeg_v3_0.c
From: XueBing Chen
Date: Wed Aug 23 2023 - 05:35:51 EST
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: XueBing Chen <chenxuebing@xxxxxxx>
---
drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
index df4440c21bbf..436606a66e3a 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
@@ -498,7 +498,7 @@ static int jpeg_v3_0_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)
@@ -506,7 +506,7 @@ static int jpeg_v3_0_set_powergating_state(void *handle,
else
ret = jpeg_v3_0_start(adev);
- if(!ret)
+ if (!ret)
adev->jpeg.cur_state = state;
return ret;
@@ -605,8 +605,7 @@ static void jpeg_v3_0_set_irq_funcs(struct amdgpu_device *adev)
adev->jpeg.inst->irq.funcs = &jpeg_v3_0_irq_funcs;
}
-const struct amdgpu_ip_block_version jpeg_v3_0_ip_block =
-{
+const struct amdgpu_ip_block_version jpeg_v3_0_ip_block = {
.type = AMD_IP_BLOCK_TYPE_JPEG,
.major = 3,
.minor = 0,
--
2.17.1