Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5438794rwb; Tue, 1 Aug 2023 02:32:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlGBKCOC7f3e1SFl/aZwLA8RXfJzS+MbaQyn/oT8SIFKCLja/9T0HB7Y7WjRWpSSLKYdDKjh X-Received: by 2002:a17:903:244d:b0:1b9:e8a5:3699 with SMTP id l13-20020a170903244d00b001b9e8a53699mr13069244pls.21.1690882347443; Tue, 01 Aug 2023 02:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690882347; cv=none; d=google.com; s=arc-20160816; b=yQAybvFwyihdsU+ZMfOhNbpxwW+UmIqgM0qAgDutnY6kvdW5ISqpeVQQKcKy9uCIoj Gw7oRdRmP+2oGaLhoO5yE+xgLoHsQV5xWJY6g5wh2UccxRA/7Qnzai91riSThalE+Sq1 tdHlrh7gmgc7URFiomJ/S90x3ro2raTxAPKaXH4MltOA5e/LbWUvTw5eCNBWeXD0h9bD wITH3Td/EsTQ3cbRVHyRW5IpKSftAx4ZcFR53awFX9amP0es53DxT6MOS1c5VJDm9WxP 8xl2AQUATY8BWuGZWuZpVs46On3KHn3hTm9TCrx1PCKkFt1u15hFUP3iZt2Fl1lAZhs1 TmtA== 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=QvIwWS6EtJbiQqqej8NO2yZb0nZQFthq2Y72Fo4ZvPE=; fh=uzQ2njGvRnNicAzoECU0n2pvDAEB0craVlwUtEtLFVc=; b=lSzA3aYUoN4x0/juh8IvY7AkduD+6jmOFhp+mLC9wbRW7tmoouXWBgj/pEfyXqsasq hj23xN8nq6m8edMH37pSEErVj/z8vPzrXMA4P4Qbs3yBMK4cAD4mimiAaIVdgQ1yLHca JcQSwP+ya+1j68h49hls1JUr0aQeGzc+jQOclF3ywr9T6/UTQ8Z/V7Qu2FTR3kKumHs0 79sEjijv21qeWOTzYD0W7PzlbzxhEUrylma4WhX+pZvAURw33WD1WiKcnKX/KW6WMrGB aFCA+wJECDpNYUHaMEp5EZOShoBuUvOGWkVhRP9tI25nJHmPvXhl+9N/GzHTg3ug9Mrm xYmg== 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 k8-20020a170902c40800b001b6ae9f8bb1si9331023plk.75.2023.08.01.02.32.15; Tue, 01 Aug 2023 02:32:27 -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 S232607AbjHAJV5 (ORCPT + 99 others); Tue, 1 Aug 2023 05:21:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232468AbjHAJVl (ORCPT ); Tue, 1 Aug 2023 05:21:41 -0400 Received: from out28-146.mail.aliyun.com (out28-146.mail.aliyun.com [115.124.28.146]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63AA22D62 for ; Tue, 1 Aug 2023 02:20:19 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1145429|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_alarm|0.0510493-0.00536844-0.943582;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047198;MF=sunran001@208suo.com;NM=1;PH=DS;RN=7;RT=7;SR=0;TI=SMTPD_---.U5r7xrd_1690881546; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U5r7xrd_1690881546) by smtp.aliyun-inc.com; Tue, 01 Aug 2023 17:19:08 +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: Clean up errors in vega10_processpptables.c Date: Tue, 1 Aug 2023 09:19:06 +0000 Message-Id: <20230801091906.7270-1-sunran001@208suo.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, 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: "foo* bar" should be "foo *bar" ERROR: space required before the open brace '{' ERROR: space required before the open parenthesis '(' Signed-off-by: Ran Sun --- .../gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c index bb90d8abf79b..3be616af327e 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c @@ -372,9 +372,9 @@ static int get_mm_clock_voltage_table( return 0; } -static void get_scl_sda_value(uint8_t line, uint8_t *scl, uint8_t* sda) +static void get_scl_sda_value(uint8_t line, uint8_t *scl, uint8_t *sda) { - switch(line){ + switch (line) { case Vega10_I2CLineID_DDC1: *scl = Vega10_I2C_DDC1CLK; *sda = Vega10_I2C_DDC1DATA; @@ -954,7 +954,7 @@ static int init_powerplay_extended_tables( if (!result && powerplay_table->usPixclkDependencyTableOffset) result = get_pix_clk_voltage_dependency_table(hwmgr, &pp_table_info->vdd_dep_on_pixclk, - (const ATOM_Vega10_PIXCLK_Dependency_Table*) + (const ATOM_Vega10_PIXCLK_Dependency_Table *) pixclk_dep_table); if (!result && powerplay_table->usPhyClkDependencyTableOffset) -- 2.17.1