Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5292919rwb; Mon, 31 Jul 2023 23:22:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlFCjPZtH8LFqP9HDNY5MRLPRgBDwRhwwgnCl/nT7jQs4cJiEUcbRss6oD01Mmy4BNJuNt/V X-Received: by 2002:a17:907:2724:b0:99b:c1af:17ea with SMTP id d4-20020a170907272400b0099bc1af17eamr1449709ejl.15.1690870933674; Mon, 31 Jul 2023 23:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690870933; cv=none; d=google.com; s=arc-20160816; b=tkLHFsTeHwg+scKUhDBjDTrUCwlnTmP+fwESIc0sMK7Aw1bsE5xgzI+ctLcTApxTBi VPBCtMEljE1HmWytAsEHi5VW7iCcj85OlPfZCj+MJW9LTbNWMDEI4kKSYcHr/ysgXldM 41aQxSr701KDvKI+JSxmKMjJmhX1YBmdSNdxhWr0gghHiwIb3MHJ/x5/Ud1QttrdwJDC x/cq102JFddNn/T4QSeGBezaBtI/R1C2O8ECpTD9rd7rsHzfwHqT81RWpEqC2c+KDwPV SJAB4KgY+k8W/A8CuV7iPoFN3xHKxKcm5MT9WJCwN+QHuw8uUCSs0mvli3h5b2GwRpbW 2cSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=rWk/DSxDrnFgVVhl9Hbff43CeX6PzGFG5Q6OKeSnIkg=; fh=uzQ2njGvRnNicAzoECU0n2pvDAEB0craVlwUtEtLFVc=; b=cGHWimD7q8e69vLFS4u+zzaLytY4OvlGgAf3aD6zq6nMRaLeDz01lLGfHOC37g5IO5 rB9OmwumlzKkl7MoDHMyhwgyYFgCadNl26tyGmqnKsYtLo8A0xARC2qd+MffGsQ8DgsX 2DQ3+T8P7lVnYtuWcLB8m2HiRKBKE1Ne9heD+7J8H70T7br4uqtowCmDCn3Sh/alu0Dc kVPcKgiDTM4+VaNSlr4uY/4CytU08m5dpPou1uqJbwugtikL3+wdYuTz4KSUBUF2fsIw MJn5RY0vJlVeHm5QC0vvodnSvAxyn3xAt4aMsfhF4BK1Z0yyDjdOjVk/duRIK7Cowqd/ UClA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b14-20020a1709062b4e00b00986432cf57csi8483306ejg.942.2023.07.31.23.21.48; Mon, 31 Jul 2023 23:22:13 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231195AbjHAF6j (ORCPT + 99 others); Tue, 1 Aug 2023 01:58:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230266AbjHAF6i (ORCPT ); Tue, 1 Aug 2023 01:58:38 -0400 Received: from out28-147.mail.aliyun.com (out28-147.mail.aliyun.com [115.124.28.147]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8349A10C7 for ; Mon, 31 Jul 2023 22:58:36 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1285285|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.0182949-0.000150213-0.981555;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047211;MF=sunran001@208suo.com;NM=1;PH=DS;RN=7;RT=7;SR=0;TI=SMTPD_---.U5e9L-1_1690869507; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U5e9L-1_1690869507) by smtp.aliyun-inc.com; Tue, 01 Aug 2023 13:58:29 +0800 From: Ran Sun To: alexander.deucher@amd.com, airlied@gmail.com, daniel@ffwll.ch Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ran Sun Subject: [PATCH] drm/amd/pm: Clean up errors in vega10_hwmgr.c Date: Tue, 1 Aug 2023 05:58:26 +0000 Message-Id: <20230801055826.6000-1-sunran001@208suo.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 Fix the following errors reported by checkpatch: ERROR: trailing statements should be on next line ERROR: space required before the open brace '{' ERROR: space required before the open parenthesis '(' ERROR: space required after that ',' (ctx:VxV) Signed-off-by: Ran Sun --- .../drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c index 08518bc1cbbe..ba7294daddfe 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c @@ -670,17 +670,23 @@ static int vega10_patch_voltage_dependency_tables_with_lookup_table( for (i = 0; i < 6; i++) { struct phm_ppt_v1_clock_voltage_dependency_table *vdt; switch (i) { - case 0: vdt = table_info->vdd_dep_on_socclk; + case 0: + vdt = table_info->vdd_dep_on_socclk; break; - case 1: vdt = table_info->vdd_dep_on_sclk; + case 1: + vdt = table_info->vdd_dep_on_sclk; break; - case 2: vdt = table_info->vdd_dep_on_dcefclk; + case 2: + vdt = table_info->vdd_dep_on_dcefclk; break; - case 3: vdt = table_info->vdd_dep_on_pixclk; + case 3: + vdt = table_info->vdd_dep_on_pixclk; break; - case 4: vdt = table_info->vdd_dep_on_dispclk; + case 4: + vdt = table_info->vdd_dep_on_dispclk; break; - case 5: vdt = table_info->vdd_dep_on_phyclk; + case 5: + vdt = table_info->vdd_dep_on_phyclk; break; } -- 2.17.1