Commit 64f857b5 authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Alex Deucher

drm/amd/display: Clean up some inconsistent indenting

No functional modification involved.

smatch warnings:

drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_dpp_cm.c:450 dpp20_get_blndgam_current() warn: inconsistent indenting.
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_dpp_cm.c:543 dpp20_get_shaper_current() warn: inconsistent indenting.
Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 292956cf
...@@ -444,24 +444,24 @@ static enum dc_lut_mode dpp20_get_blndgam_current(struct dpp *dpp_base) ...@@ -444,24 +444,24 @@ static enum dc_lut_mode dpp20_get_blndgam_current(struct dpp *dpp_base)
uint32_t state_mode; uint32_t state_mode;
struct dcn20_dpp *dpp = TO_DCN20_DPP(dpp_base); struct dcn20_dpp *dpp = TO_DCN20_DPP(dpp_base);
REG_GET(CM_BLNDGAM_LUT_WRITE_EN_MASK, REG_GET(CM_BLNDGAM_LUT_WRITE_EN_MASK, CM_BLNDGAM_CONFIG_STATUS, &state_mode);
CM_BLNDGAM_CONFIG_STATUS, &state_mode);
switch (state_mode) { switch (state_mode) {
case 0: case 0:
mode = LUT_BYPASS; mode = LUT_BYPASS;
break; break;
case 1: case 1:
mode = LUT_RAM_A; mode = LUT_RAM_A;
break; break;
case 2: case 2:
mode = LUT_RAM_B; mode = LUT_RAM_B;
break; break;
default: default:
mode = LUT_BYPASS; mode = LUT_BYPASS;
break; break;
} }
return mode;
return mode;
} }
bool dpp20_program_blnd_lut( bool dpp20_program_blnd_lut(
...@@ -537,24 +537,24 @@ static enum dc_lut_mode dpp20_get_shaper_current(struct dpp *dpp_base) ...@@ -537,24 +537,24 @@ static enum dc_lut_mode dpp20_get_shaper_current(struct dpp *dpp_base)
uint32_t state_mode; uint32_t state_mode;
struct dcn20_dpp *dpp = TO_DCN20_DPP(dpp_base); struct dcn20_dpp *dpp = TO_DCN20_DPP(dpp_base);
REG_GET(CM_SHAPER_LUT_WRITE_EN_MASK, REG_GET(CM_SHAPER_LUT_WRITE_EN_MASK, CM_SHAPER_CONFIG_STATUS, &state_mode);
CM_SHAPER_CONFIG_STATUS, &state_mode);
switch (state_mode) { switch (state_mode) {
case 0: case 0:
mode = LUT_BYPASS; mode = LUT_BYPASS;
break; break;
case 1: case 1:
mode = LUT_RAM_A; mode = LUT_RAM_A;
break; break;
case 2: case 2:
mode = LUT_RAM_B; mode = LUT_RAM_B;
break; break;
default: default:
mode = LUT_BYPASS; mode = LUT_BYPASS;
break; break;
} }
return mode;
return mode;
} }
static void dpp20_configure_shaper_lut( static void dpp20_configure_shaper_lut(
......
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