Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5294391rwb; Mon, 31 Jul 2023 23:24:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlGCf+jUDuZPKatRGiRhBOm3vCjZGxpXQX1guYJXX1t36ANA6v6eo00I7rrh848omFoxvTgJ X-Received: by 2002:a50:ed14:0:b0:522:586b:7db6 with SMTP id j20-20020a50ed14000000b00522586b7db6mr1768612eds.34.1690871065443; Mon, 31 Jul 2023 23:24:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690871065; cv=none; d=google.com; s=arc-20160816; b=z8jpsDuGEvn6rHSEdXAbixXsfnevZj5tnLhITg+7z4awUoKbYZPz4HoHt1S+euNDHU 4zoXfDUnOdedJeqkRkHnLRDa04WvgmK2gOXypeuI+6GuQhsYRyqY0C6gHd2lfG2O0Ce2 zYtAIhOQBfkqdXm8POunqnVa6Jn/qfNSHCtfPaRD2GyCNjFBOgKLcPU3ECm/Hf/fb3Es eoh9WhqTQQGU4dIYdityACuz6NINrcf1CZS5+AcwCO1rW6lK7ivvf+a/4oWKcNAMjFOk ivi+WPq3s8Z/9zRaoWcKNv2HhPgKCD9agdJF5DaClUyqJe/vMcyFk1gikLzDReo4/JFk W6Kg== 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=XNzZQ/+T7n3fSfqXcvR0K1hLzOOBDI7qzPM07H9Zo0o=; fh=uzQ2njGvRnNicAzoECU0n2pvDAEB0craVlwUtEtLFVc=; b=t6r4v6wsBP6XF8zhoc1++HFnRvCNTqVcJuz/DCdsV4PXKr0KbogcI3EWwGv2Huy+l+ h8QudQaf3dDF7sgKMXl9WQXGTyQ01lWYCeb05FozvhFw3rr2znIEUo3ERs8/rLOQTH5/ LT36fH2gcOh282j18cNf/3t9R5gtb2jjAY/fqOE3c7eB5pRPsb3KHhXjrK2JVtq1iKXY LE0UccsA2FuRZFHxY9mOrMn/Rej3YwQF6NWxtC4trkceASvjHgwBbTvywk+uEB7lWFNF hp27pFb4exEn6l66vPuZlO9dFHxOH/3Kw4LIQ1ZEXQ64YLan+OTs9cXcQ5ZjISyo4M5Q MSMg== 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 x18-20020aa7d392000000b0051fef960d1esi4939959edq.70.2023.07.31.23.24.01; Mon, 31 Jul 2023 23:24:25 -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 S231267AbjHAGE4 (ORCPT + 99 others); Tue, 1 Aug 2023 02:04:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231213AbjHAGEy (ORCPT ); Tue, 1 Aug 2023 02:04:54 -0400 Received: from out28-194.mail.aliyun.com (out28-194.mail.aliyun.com [115.124.28.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16812187 for ; Mon, 31 Jul 2023 23:04:52 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07723793|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0904852-0.0047855-0.904729;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047194;MF=sunran001@208suo.com;NM=1;PH=DS;RN=7;RT=7;SR=0;TI=SMTPD_---.U5eilLU_1690869884; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U5eilLU_1690869884) by smtp.aliyun-inc.com; Tue, 01 Aug 2023 14:04:46 +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 vega12_pptable.h Date: Tue, 1 Aug 2023 06:04:43 +0000 Message-Id: <20230801060443.6090-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_H4,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: open brace '{' following struct go on the same line ERROR: space prohibited before open square bracket '[' Signed-off-by: Ran Sun --- .../gpu/drm/amd/pm/powerplay/hwmgr/vega12_pptable.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_pptable.h b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_pptable.h index bf4f5095b80d..9b8435a4d306 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_pptable.h +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_pptable.h @@ -72,8 +72,7 @@ enum ATOM_VEGA12_PPCLOCK_ID { typedef enum ATOM_VEGA12_PPCLOCK_ID ATOM_VEGA12_PPCLOCK_ID; -typedef struct _ATOM_VEGA12_POWERPLAYTABLE -{ +typedef struct _ATOM_VEGA12_POWERPLAYTABLE { struct atom_common_table_header sHeader; UCHAR ucTableRevision; USHORT usTableSize; @@ -92,11 +91,11 @@ typedef struct _ATOM_VEGA12_POWERPLAYTABLE USHORT usODPowerSavePowerLimit; USHORT usSoftwareShutdownTemp; - ULONG PowerSavingClockMax [ATOM_VEGA12_PPCLOCK_COUNT]; - ULONG PowerSavingClockMin [ATOM_VEGA12_PPCLOCK_COUNT]; + ULONG PowerSavingClockMax[ATOM_VEGA12_PPCLOCK_COUNT]; + ULONG PowerSavingClockMin[ATOM_VEGA12_PPCLOCK_COUNT]; - ULONG ODSettingsMax [ATOM_VEGA12_ODSETTING_COUNT]; - ULONG ODSettingsMin [ATOM_VEGA12_ODSETTING_COUNT]; + ULONG ODSettingsMax[ATOM_VEGA12_ODSETTING_COUNT]; + ULONG ODSettingsMin[ATOM_VEGA12_ODSETTING_COUNT]; USHORT usReserve[5]; -- 2.17.1