Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5475124rwb; Tue, 1 Aug 2023 03:17:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlHqHtg+CY1FmtzMsmWlUsieQQgtjJ1p4IkElFE/Mdc0ogY/3lFlbjJ1037kfWNPgleQEqi2 X-Received: by 2002:a17:90a:fb58:b0:263:9816:fe0f with SMTP id iq24-20020a17090afb5800b002639816fe0fmr11935854pjb.15.1690885035023; Tue, 01 Aug 2023 03:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690885035; cv=none; d=google.com; s=arc-20160816; b=YqXtEkE3B28YUxzuywkZZsS8F09Otdrt9pSJK3h9ZCIrQSBbdtfbS7t2daTNVwDBjK 4GFiT5qm3lQjFkGpeUIxmzBweSLlU89Z8p7jz1N5SR2LLHw6hkP8tgQM736/FFocZB6y /eYw02daEFfVLHTvhx9QIu6EBZK5uXFziSUd/U+XmnDk+t0EMa6OTVFtXJZiEH/j2Sww hbbfW36O1HdypkqSAXmx4bFXVSvVWn97a54H4D/UBNcvM/JFyoPEgvwFYwr3KwqNPpz7 yCIgutozrNNRe1CXkl1HNB4U7DaHqP+yEMPVcBticUVpTwojrJL7nSUnpxb4EdbRrW/o Gzrg== 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=GaYKCsVYHauxjOtFXCA/2fWby6d57rFokTwOstLq4aA=; fh=uzQ2njGvRnNicAzoECU0n2pvDAEB0craVlwUtEtLFVc=; b=Ru3ij/ZmKJt+TUc5QTjz2c1ERoGaMYJeREtLsEnQSMM17wbh+DIPFghM7BUiaCkZvd duCqiJu3R4RJ5dmMvnrK1ObFCi/ewhnExize5k6yHid+IcjG1HgmgMmzfhPdk527ClFA HRRw/KxOOS1RLQfxp5TR2BZDpC0LEoClTbNRrFnEQEQR7sQvk6/RQKJbFyvpl4vrINws pFhjgdMb0xxDlBezC1yxfVkxgP5i5qlJTP4wp9phz5tcgAoxbhT+b4M6VXtQpFeAl/8v dAp081JKkYm/1ojreKtb6iOBLR/UZdOTVhYULoNqhiUUmzlQm72NBzWuRBLrjBGaHlqz /Ulg== 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 p13-20020a17090a2d8d00b00263c7cadb73si5381627pjd.152.2023.08.01.03.17.02; Tue, 01 Aug 2023 03:17:15 -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 S232818AbjHAJqq (ORCPT + 99 others); Tue, 1 Aug 2023 05:46:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233600AbjHAJqY (ORCPT ); Tue, 1 Aug 2023 05:46:24 -0400 Received: from out28-221.mail.aliyun.com (out28-221.mail.aliyun.com [115.124.28.221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7217B3ABA for ; Tue, 1 Aug 2023 02:44:54 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.0743643|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_alarm|0.0623864-0.000420737-0.937193;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_---.U5rttun_1690883085; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U5rttun_1690883085) by smtp.aliyun-inc.com; Tue, 01 Aug 2023 17:44:47 +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 vega20_pptable.h Date: Tue, 1 Aug 2023 09:44:43 +0000 Message-Id: <20230801094443.7942-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 --- .../amd/pm/powerplay/hwmgr/vega20_pptable.h | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_pptable.h b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_pptable.h index 2222e29405c6..b468dddbefff 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_pptable.h +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_pptable.h @@ -73,14 +73,13 @@ enum ATOM_VEGA20_ODSETTING_ID { }; typedef enum ATOM_VEGA20_ODSETTING_ID ATOM_VEGA20_ODSETTING_ID; -typedef struct _ATOM_VEGA20_OVERDRIVE8_RECORD -{ +typedef struct _ATOM_VEGA20_OVERDRIVE8_RECORD { UCHAR ucODTableRevision; ULONG ODFeatureCount; - UCHAR ODFeatureCapabilities [ATOM_VEGA20_ODFEATURE_MAX_COUNT]; //OD feature support flags + UCHAR ODFeatureCapabilities[ATOM_VEGA20_ODFEATURE_MAX_COUNT]; //OD feature support flags ULONG ODSettingCount; - ULONG ODSettingsMax [ATOM_VEGA20_ODSETTING_MAX_COUNT]; //Upper Limit for each OD Setting - ULONG ODSettingsMin [ATOM_VEGA20_ODSETTING_MAX_COUNT]; //Lower Limit for each OD Setting + ULONG ODSettingsMax[ATOM_VEGA20_ODSETTING_MAX_COUNT]; //Upper Limit for each OD Setting + ULONG ODSettingsMin[ATOM_VEGA20_ODSETTING_MAX_COUNT]; //Lower Limit for each OD Setting } ATOM_VEGA20_OVERDRIVE8_RECORD; enum ATOM_VEGA20_PPCLOCK_ID { @@ -99,16 +98,14 @@ enum ATOM_VEGA20_PPCLOCK_ID { }; typedef enum ATOM_VEGA20_PPCLOCK_ID ATOM_VEGA20_PPCLOCK_ID; -typedef struct _ATOM_VEGA20_POWER_SAVING_CLOCK_RECORD -{ +typedef struct _ATOM_VEGA20_POWER_SAVING_CLOCK_RECORD { UCHAR ucTableRevision; ULONG PowerSavingClockCount; // Count of PowerSavingClock Mode - ULONG PowerSavingClockMax [ATOM_VEGA20_PPCLOCK_MAX_COUNT]; // PowerSavingClock Mode Clock Maximum array In MHz - ULONG PowerSavingClockMin [ATOM_VEGA20_PPCLOCK_MAX_COUNT]; // PowerSavingClock Mode Clock Minimum array In MHz + ULONG PowerSavingClockMax[ATOM_VEGA20_PPCLOCK_MAX_COUNT]; // PowerSavingClock Mode Clock Maximum array In MHz + ULONG PowerSavingClockMin[ATOM_VEGA20_PPCLOCK_MAX_COUNT]; // PowerSavingClock Mode Clock Minimum array In MHz } ATOM_VEGA20_POWER_SAVING_CLOCK_RECORD; -typedef struct _ATOM_VEGA20_POWERPLAYTABLE -{ +typedef struct _ATOM_VEGA20_POWERPLAYTABLE { struct atom_common_table_header sHeader; UCHAR ucTableRevision; USHORT usTableSize; -- 2.17.1