[PATCH] drm/amdgpu: Clean up errors in clearstate_ci.h
From: XueBing Chen
Date: Wed Aug 23 2023 - 05:50:24 EST
Fix the following errors reported by checkpatch:
ERROR: that open brace { should be on the previous line
Signed-off-by: XueBing Chen <chenxuebing@xxxxxxx>
---
drivers/gpu/drm/amd/amdgpu/clearstate_ci.h | 24 ++++++++--------------
1 file changed, 8 insertions(+), 16 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/clearstate_ci.h b/drivers/gpu/drm/amd/amdgpu/clearstate_ci.h
index c3982f9475fb..e6a46aa38cf4 100644
--- a/drivers/gpu/drm/amd/amdgpu/clearstate_ci.h
+++ b/drivers/gpu/drm/amd/amdgpu/clearstate_ci.h
@@ -21,8 +21,7 @@
*
*/
-static const unsigned int ci_SECT_CONTEXT_def_1[] =
-{
+static const unsigned int ci_SECT_CONTEXT_def_1[] = {
0x00000000, // DB_RENDER_CONTROL
0x00000000, // DB_COUNT_CONTROL
0x00000000, // DB_DEPTH_VIEW
@@ -236,8 +235,7 @@ static const unsigned int ci_SECT_CONTEXT_def_1[] =
0x00000000, // PA_SC_VPORT_ZMIN_15
0x3f800000, // PA_SC_VPORT_ZMAX_15
};
-static const unsigned int ci_SECT_CONTEXT_def_2[] =
-{
+static const unsigned int ci_SECT_CONTEXT_def_2[] = {
0x00000000, // PA_SC_SCREEN_EXTENT_CONTROL
0, // HOLE
0x00000000, // CP_PERFMON_CNTX_CNTL
@@ -513,8 +511,7 @@ static const unsigned int ci_SECT_CONTEXT_def_2[] =
0x00000000, // CB_BLEND6_CONTROL
0x00000000, // CB_BLEND7_CONTROL
};
-static const unsigned int ci_SECT_CONTEXT_def_3[] =
-{
+static const unsigned int ci_SECT_CONTEXT_def_3[] = {
0x00000000, // PA_CL_POINT_X_RAD
0x00000000, // PA_CL_POINT_Y_RAD
0x00000000, // PA_CL_POINT_SIZE
@@ -522,8 +519,7 @@ static const unsigned int ci_SECT_CONTEXT_def_3[] =
0x00000000, // VGT_DMA_BASE_HI
0x00000000, // VGT_DMA_BASE
};
-static const unsigned int ci_SECT_CONTEXT_def_4[] =
-{
+static const unsigned int ci_SECT_CONTEXT_def_4[] = {
0x00000000, // DB_DEPTH_CONTROL
0x00000000, // DB_EQAA
0x00000000, // CB_COLOR_CONTROL
@@ -682,17 +678,14 @@ static const unsigned int ci_SECT_CONTEXT_def_4[] =
0x00000000, // VGT_GS_OUT_PRIM_TYPE
0x00000000, // IA_ENHANCE
};
-static const unsigned int ci_SECT_CONTEXT_def_5[] =
-{
+static const unsigned int ci_SECT_CONTEXT_def_5[] = {
0x00000000, // WD_ENHANCE
0x00000000, // VGT_PRIMITIVEID_EN
};
-static const unsigned int ci_SECT_CONTEXT_def_6[] =
-{
+static const unsigned int ci_SECT_CONTEXT_def_6[] = {
0x00000000, // VGT_PRIMITIVEID_RESET
};
-static const unsigned int ci_SECT_CONTEXT_def_7[] =
-{
+static const unsigned int ci_SECT_CONTEXT_def_7[] = {
0x00000000, // VGT_MULTI_PRIM_IB_RESET_EN
0, // HOLE
0, // HOLE
@@ -927,8 +920,7 @@ static const unsigned int ci_SECT_CONTEXT_def_7[] =
0x00000000, // CB_COLOR7_CLEAR_WORD0
0x00000000, // CB_COLOR7_CLEAR_WORD1
};
-static const struct cs_extent_def ci_SECT_CONTEXT_defs[] =
-{
+static const struct cs_extent_def ci_SECT_CONTEXT_defs[] = {
{ci_SECT_CONTEXT_def_1, 0x0000a000, 212 },
{ci_SECT_CONTEXT_def_2, 0x0000a0d6, 274 },
{ci_SECT_CONTEXT_def_3, 0x0000a1f5, 6 },
--
2.17.1