Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp386044rwo; Tue, 1 Aug 2023 19:33:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlGIeD8q6Sv9KjCGtXzkAIaPEPQ+QOfsXPaO5WX2AntU3l5wjM9kzKCdgNiBR7F+uStiHbtW X-Received: by 2002:a17:90a:8986:b0:268:b7a2:62f1 with SMTP id v6-20020a17090a898600b00268b7a262f1mr7838402pjn.27.1690943589428; Tue, 01 Aug 2023 19:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690943589; cv=none; d=google.com; s=arc-20160816; b=jMXocYXQVOkWWs0aV2kw4u099vYPTRORrsoZWs55Z5VS2cVXIyZnBe06ceKXwPbo3s 92SkLyR92gZW8RDq2JLhEvqqh0xM/sKdNUbl+Db6yIt33cV7mQRahh2HPgmt2vGVCCHb ab9XYQAYOuX0rUVUX9Xc7bxX8TYLLnpKNa7ty15O7AM5hyZyxo7VHwFfbZModX+amlMu hxc2/B7KKMn1fOs95iF2bUpp2d7Gj9KQkg4dJgft4zP9Iba/fN1AhfOKvIZPTGTD4Ymx TaQx9M/zrUV6TrA14JEZST6lqzzaZNeyqnI/Blm0PiEBguzhqZ3UyCMlP9Ek+nRJt4Bu bGEA== 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=IKVqFhULoiktRyyZBMLlWX4P18ytFs9t15DVBa+W198=; fh=M7zDVNG5wYj+Ni7TE5shUh1U8LRNWB+keJIKRth6hag=; b=n8lXzeaEOco9n12kmVVWrPhhxne/qGCvAKvmrg2N3SryzP2a82z4Vw5sXatpHHkp9S 0GwDq263uj27tKz3Or4TxYBHs/qHGoZy3wT+mbBouY1c6hWS0XP1xKZn3b0Qm9hb1TQi +ntfrM5vulblbMRiLWzuvVTw90UjlxTVGiQtS6kGd8pWbOPo5GhdQW/VC6GlVl8IXjZi 5n3PZjqIYn2pCkzGNzpUPK10vMoCm2vowjEDPd3u/oqV7I2Hzyul6YSg7QvyrfHVAcbP GvZl85fzMUhlkB+IAj9sLl1aKLvz0pBo0c+t81nLKY0i2DrwAxAhL39rvpwY/ZYWR6m3 Uw/g== 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 lj15-20020a17090b344f00b0026831f63e8csi392835pjb.52.2023.08.01.19.32.55; Tue, 01 Aug 2023 19:33:09 -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 S231347AbjHBB7w (ORCPT + 99 others); Tue, 1 Aug 2023 21:59:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230150AbjHBB7v (ORCPT ); Tue, 1 Aug 2023 21:59:51 -0400 Received: from out28-128.mail.aliyun.com (out28-128.mail.aliyun.com [115.124.28.128]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25BBB137 for ; Tue, 1 Aug 2023 18:59:49 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1085532|-1;CH=blue;DM=|OVERLOAD|false|;DS=CONTINUE|ham_system_inform|0.0392941-0.000118786-0.960587;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047199;MF=sunran001@208suo.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.U6KNjwR_1690941582; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U6KNjwR_1690941582) by smtp.aliyun-inc.com; Wed, 02 Aug 2023 09:59:44 +0800 From: Ran Sun To: alexander.deucher@amd.com 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 smu75.h Date: Wed, 2 Aug 2023 01:59:41 +0000 Message-Id: <20230802015941.9124-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_BLOCKED,RCVD_IN_MSPIKE_H3,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: space prohibited before open square bracket '[' ERROR: "foo * bar" should be "foo *bar" Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/powerplay/inc/smu75.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/inc/smu75.h b/drivers/gpu/drm/amd/pm/powerplay/inc/smu75.h index 771523001533..7d5ed7751976 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/inc/smu75.h +++ b/drivers/gpu/drm/amd/pm/powerplay/inc/smu75.h @@ -224,8 +224,8 @@ struct SMU7_LocalDpmScoreboard { uint8_t DteClampMode; uint8_t FpsClampMode; - uint16_t LevelResidencyCounters [SMU75_MAX_LEVELS_GRAPHICS]; - uint16_t LevelSwitchCounters [SMU75_MAX_LEVELS_GRAPHICS]; + uint16_t LevelResidencyCounters[SMU75_MAX_LEVELS_GRAPHICS]; + uint16_t LevelSwitchCounters[SMU75_MAX_LEVELS_GRAPHICS]; void (*TargetStateCalculator)(uint8_t); void (*SavedTargetStateCalculator)(uint8_t); @@ -316,7 +316,7 @@ struct SMU7_VoltageScoreboard { VoltageChangeHandler_t functionLinks[6]; - uint16_t * VddcFollower1; + uint16_t *VddcFollower1; int16_t Driver_OD_RequestedVidOffset1; int16_t Driver_OD_RequestedVidOffset2; }; @@ -677,9 +677,9 @@ typedef struct SCS_CELL_t SCS_CELL_t; struct VFT_TABLE_t { VFT_CELL_t Cell[TEMP_RANGE_MAXSTEPS][NUM_VFT_COLUMNS]; - uint16_t AvfsGbv [NUM_VFT_COLUMNS]; - uint16_t BtcGbv [NUM_VFT_COLUMNS]; - int16_t Temperature [TEMP_RANGE_MAXSTEPS]; + uint16_t AvfsGbv[NUM_VFT_COLUMNS]; + uint16_t BtcGbv[NUM_VFT_COLUMNS]; + int16_t Temperature[TEMP_RANGE_MAXSTEPS]; #ifdef SMU__FIRMWARE_SCKS_PRESENT__1 SCS_CELL_t ScksCell[TEMP_RANGE_MAXSTEPS][NUM_VFT_COLUMNS]; -- 2.17.1