]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/display: Clean up some inconsistent indenting
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Tue, 26 Jul 2022 07:25:37 +0000 (15:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Jul 2022 20:05:15 +0000 (16:05 -0400)
No functional modification involved.

smatch warnings:

drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_mpc.c:306 mpc32_get_shaper_current() warn: inconsistent indenting.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c

index 94141f5e6994729db40ff99e6250f81510a0aef4..357bd2461bc984fdb40bc7fc254d78d67ec61da2 100644 (file)
@@ -300,24 +300,24 @@ static enum dc_lut_mode mpc32_get_shaper_current(struct mpc *mpc, uint32_t mpcc_
        uint32_t state_mode;
        struct dcn30_mpc *mpc30 = TO_DCN30_MPC(mpc);
 
-       REG_GET(MPCC_MCM_SHAPER_CONTROL[mpcc_id],
-                       MPCC_MCM_SHAPER_MODE_CURRENT, &state_mode);
-
-               switch (state_mode) {
-               case 0:
-                       mode = LUT_BYPASS;
-                       break;
-               case 1:
-                       mode = LUT_RAM_A;
-                       break;
-               case 2:
-                       mode = LUT_RAM_B;
-                       break;
-               default:
-                       mode = LUT_BYPASS;
-                       break;
-               }
-               return mode;
+       REG_GET(MPCC_MCM_SHAPER_CONTROL[mpcc_id], MPCC_MCM_SHAPER_MODE_CURRENT, &state_mode);
+
+       switch (state_mode) {
+       case 0:
+               mode = LUT_BYPASS;
+               break;
+       case 1:
+               mode = LUT_RAM_A;
+               break;
+       case 2:
+               mode = LUT_RAM_B;
+               break;
+       default:
+               mode = LUT_BYPASS;
+               break;
+       }
+
+       return mode;
 }