Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp480596imn; Tue, 26 Jul 2022 00:34:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vvW4Dn3RMXnM8ztuQfu7qFOeOubNo67etDGzBzWx0SKlZ8+Xmn2DGaSZK3lL9nuqXbp816 X-Received: by 2002:a17:90b:17ca:b0:1f2:df3d:593c with SMTP id me10-20020a17090b17ca00b001f2df3d593cmr4666028pjb.205.1658820851993; Tue, 26 Jul 2022 00:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658820851; cv=none; d=google.com; s=arc-20160816; b=Jnj5D79TcQb9LtgmoUr7p7m09H0KDawauy49MkQInhwZ6SVnIDvGn7RTsrvCx1Sfp1 XwmcwOnFXLuGZ1Of45LJ4w+9skZPgdcKOLQEkfXaEcrfoiXuv0/FGQmWgA+ABaKnYryl 2IjKzpngFOCatsW8yc2X+vdwIUHQztahNUj9NQOh08K0IDlsD4okh1cXQcOhv9piHGb6 FR5/9XHnjZix3jr+QG+ybxc3GOE9UzCIGzmlD77kAWM9Jp7XnzAiJGwsuxMUcaGNt2sY 4KuseJdI+Jknwd+uONc19PJUuju6v61h+q0XmCx12S1JyIkBPahaWtSJ7iPmZbiHiLMQ hWmQ== 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=PzBluEABfmN2w088+yfhGhbh0/0YiF7gWwZS+16ZnLo=; b=khFVqhPijDQC9diw3xcXYLFUscTB0zs1M3d5eapbTkKmf3tyGQIdTtefpSBWb+VzJV +8kf9OZBS7kTwd59mORWsRpiOasYYIFfEzL6wIzHaTR90T9DdD4grBbw2PEjKYynfCKf SUG8pwfZoBdRLA9rSS7XuvKuNxfjrW/T8AmXWtqepMNoXJeJ0+zzSx2FuyX/wUkwOrx4 ZMTLSmoe2eWDEQ6UKk/u9YDt2bSK4m3O06rQTYUKjuaRV/ksyHyC+2mt2Bs+aZ4maytG 7yRawaYbWRfmow+/7NYsmFV8RPanjfrZq+1CFFHajEpmrFqxXEnAoBaZfsH9pUZfLYnw sKwA== 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 lw10-20020a17090b180a00b001f053611721si20008026pjb.137.2022.07.26.00.33.56; Tue, 26 Jul 2022 00:34:11 -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 S238439AbiGZHbV (ORCPT + 99 others); Tue, 26 Jul 2022 03:31:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238408AbiGZHa5 (ORCPT ); Tue, 26 Jul 2022 03:30:57 -0400 Received: from out30-42.freemail.mail.aliyun.com (out30-42.freemail.mail.aliyun.com [115.124.30.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A92A2D1EB for ; Tue, 26 Jul 2022 00:27:18 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R881e4;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_---0VKUNX5e_1658820387; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VKUNX5e_1658820387) by smtp.aliyun-inc.com; Tue, 26 Jul 2022 15:26:29 +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 02/20] drm/amd/display: Clean up some inconsistent indenting Date: Tue, 26 Jul 2022 15:25:37 +0800 Message-Id: <20220726072555.91323-2-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/dcn32/dcn32_mpc.c:306 mpc32_get_shaper_current() warn: inconsistent indenting. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- .../gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c index 94141f5e6994..357bd2461bc9 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c @@ -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; } -- 2.20.1.7.g153144c