Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp483044imn; Tue, 26 Jul 2022 00:40:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uiXj9/p+O4U666oA1TQXV3MyMD8PH39GLYPErciAnVJ//9aMDhz6jAKnA0xwhG20ddMDCn X-Received: by 2002:a05:6402:1768:b0:43b:c4b0:ffd3 with SMTP id da8-20020a056402176800b0043bc4b0ffd3mr16607701edb.163.1658821250503; Tue, 26 Jul 2022 00:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658821250; cv=none; d=google.com; s=arc-20160816; b=yGpJs7b+uW9dfib8m3Ekhy7BZ3ojnL0LJl0nVMduxS7iqO+6mPtaenD6Zgb49rV1qx bFzCEKUMcLmu0VU2JN1IV5/QyV5/+o9JP02YMxs4EFC1vVIgQnqhzDqUhnnlWMJjEDh9 ACgnn6pE0z/7U7bTvZ4j5yfuCkS3pPqTFh9B0rRcFncYJ7QRWMz3cpHR4A1ntk6QDer2 DnuTPY8gTpFsrPH9jBrOpZLHaNKAL/k7ySf+KD/e29MSIQOtmqej2RAmTYgBE10zk6q3 IqD1AZ9Pb1vb8r5OoBM7ciERrlGkibc4g7YwykWzIYLXzmhnUPXSjpX1BdwqPv8s4JVT ZAVQ== 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=G6zL2gqcASuPPyNiTYtq7RPBdFQdegVXvCs1sL4ujsM=; b=pcWildWacnfTWCZlYq4a82LtLQcmp01FZ5S9SwVrzD/FXeKtPgmICsLmCsyr1CcvVe 8frkIRFTo2AvC/ZuihlRzsb6WoxmLn6AOIQOo3VpKwRgtNduD44lFHfQSeY9pL7YB1Fg n70uqGnCzJ9pCFdoJwJXghcKj4LdXHEji684HaZSVriHBZ6wjNWVKcmJIg8T8gKCjq7o zVeLUpuUlgJhLclTccaHZOQMpH1/+Iau8Z8+asmpHSvIZd/9jxqooX9twXl1VU930c5H cMaTUUNpKSWpKX93doEmMRV+IkyqNQEh3TSNoiGtBdo7LpTVvBIFr4ccnEadi0BlUvXU IehQ== 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 qa37-20020a17090786a500b0072f25c0af5dsi15053821ejc.135.2022.07.26.00.40.25; Tue, 26 Jul 2022 00:40:50 -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 S238374AbiGZHc1 (ORCPT + 99 others); Tue, 26 Jul 2022 03:32:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230241AbiGZHbl (ORCPT ); Tue, 26 Jul 2022 03:31:41 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 129442E9E4 for ; Tue, 26 Jul 2022 00:27:49 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R481e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VKUPgsP_1658820434; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VKUPgsP_1658820434) by smtp.aliyun-inc.com; Tue, 26 Jul 2022 15:27:16 +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 13/20] drm/amd/display: Clean up some inconsistent indenting Date: Tue, 26 Jul 2022 15:25:48 +0800 Message-Id: <20220726072555.91323-13-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,RCVD_IN_DNSWL_NONE,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 warnings: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_mpc.c:305 mpc20_get_ogam_current() warn: inconsistent indenting. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- .../gpu/drm/amd/display/dc/dcn20/dcn20_mpc.c | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.c index 15734db0cdea..3d307dd58e9a 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.c +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.c @@ -299,24 +299,24 @@ static enum dc_lut_mode mpc20_get_ogam_current(struct mpc *mpc, int mpcc_id) uint32_t state_mode; struct dcn20_mpc *mpc20 = TO_DCN20_MPC(mpc); - REG_GET(MPCC_OGAM_LUT_RAM_CONTROL[mpcc_id], - MPCC_OGAM_CONFIG_STATUS, &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_OGAM_LUT_RAM_CONTROL[mpcc_id], MPCC_OGAM_CONFIG_STATUS, &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; } static void mpc2_program_lutb(struct mpc *mpc, int mpcc_id, -- 2.20.1.7.g153144c