Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp480718imn; Tue, 26 Jul 2022 00:34:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uAwdwAR+ttvLW2MVZbpWm2G/TNoKIW1o9V3x+d6wmmItJVvIa2szABv/SfLdb/iYfr2vqr X-Received: by 2002:a17:902:ebcb:b0:168:e3ba:4b5a with SMTP id p11-20020a170902ebcb00b00168e3ba4b5amr15460625plg.11.1658820873118; Tue, 26 Jul 2022 00:34:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658820873; cv=none; d=google.com; s=arc-20160816; b=lJ71H2iS/rx8ZH/bKYfbtcnb0XN2qquemKP4lnCO6C+AVHdEHrNq4t7ExBy6PB52I0 b9kf3GjdrUyW0suyZK+O3fJrManiNocYi9LcadGLp+TYuH8xt2KmZQxAM61I+fneh7Vp PG2mi6mZYMIzdPVbTdh8lMfm7CEeEOSW8j4JOFid/NinxO7TUpNKFgbfvLujpFIBuW+P pIC8SAhl3q0SXVM/qCstc5bIUp4Ttrs1BfvWGpVA2Paxid1KfGkiBrcqNjmyljpw70D/ meniJbstzM6yzNZuK4jsirMS7QOI9/aRLm/pxNLEaUduMwrCxBBOI5A+8yXQOjzGJJ7x pdDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=eJrgXm+ACO9D/7vHah7DoYq5ezoD6tXwT3GGgtJufQs=; b=GyRvPQa2Fq06vADCnZzifJwrE195KwQSMUxvOcxxmjTqwaWxh2JiC+tAUhmYFlWQAz KnIxOEpLFj9cUHqa7iRiv6YL7tHjTi33Tcr64LPLytj0Q4Xl6szbyVQSKCekWzl+oktf 85deP+mh2GrG/W6tvWk8BzL2jtb2aoeaJLzFItF/Ur1q2EKXQ4IQ6XcT+xhXSUcUt2Gr d0dw0jOGv1e1kIGOOcFmMpb8VT5VSAYXKg6u4KwK6xc9b3xULhrYL5vvw+pnTdw/Uwzf ZoDLrtFYkBS0j/qztyq/KCAUWqdBRtn8+G0ffEv/rXHNmQvu7vpMm0Z64mKBwLSDwFVk q9oA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c9-20020a170903234900b0016c4113136bsi5460445plh.171.2022.07.26.00.34.17; Tue, 26 Jul 2022 00:34:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238156AbiGZHbn (ORCPT + 99 others); Tue, 26 Jul 2022 03:31:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238133AbiGZHbK (ORCPT ); Tue, 26 Jul 2022 03:31:10 -0400 Received: from out199-7.us.a.mail.aliyun.com (out199-7.us.a.mail.aliyun.com [47.90.199.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B8532E69B for ; Tue, 26 Jul 2022 00:27:26 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R631e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VKUN8hD_1658820412; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VKUN8hD_1658820412) by smtp.aliyun-inc.com; Tue, 26 Jul 2022 15:26:54 +0800 From: Jiapeng Chong To: alexander.deucher@amd.com Cc: christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH 08/20] drm/amd/display: Clean up some inconsistent indenting Date: Tue, 26 Jul 2022 15:25:43 +0800 Message-Id: <20220726072555.91323-8-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20220726072555.91323-1-jiapeng.chong@linux.alibaba.com> References: <20220726072555.91323-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No functional modification involved. smatch warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_dpp_cm.c:67 dpp30_get_gamcor_current() warn: inconsistent indenting. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- .../drm/amd/display/dc/dcn30/dcn30_dpp_cm.c | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c index 87dbeca18984..e43f77c11c00 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c @@ -61,23 +61,20 @@ static enum dc_lut_mode dpp30_get_gamcor_current(struct dpp *dpp_base) uint32_t lut_mode; struct dcn3_dpp *dpp = TO_DCN30_DPP(dpp_base); - REG_GET(CM_GAMCOR_CONTROL, - CM_GAMCOR_MODE_CURRENT, &state_mode); + REG_GET(CM_GAMCOR_CONTROL, CM_GAMCOR_MODE_CURRENT, &state_mode); - if (state_mode == 0) - mode = LUT_BYPASS; + if (state_mode == 0) + mode = LUT_BYPASS; - if (state_mode == 2) {//Programmable RAM LUT - REG_GET(CM_GAMCOR_CONTROL, - CM_GAMCOR_SELECT_CURRENT, &lut_mode); - - if (lut_mode == 0) - mode = LUT_RAM_A; - else - mode = LUT_RAM_B; - } + if (state_mode == 2) {//Programmable RAM LUT + REG_GET(CM_GAMCOR_CONTROL, CM_GAMCOR_SELECT_CURRENT, &lut_mode); + if (lut_mode == 0) + mode = LUT_RAM_A; + else + mode = LUT_RAM_B; + } - return mode; + return mode; } static void dpp3_program_gammcor_lut( -- 2.20.1.7.g153144c