Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5466356rwb; Tue, 1 Aug 2023 03:07:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlGIHl8la7fB32+ZMyJRu87SmxjP8pI3OE4hi68btbgsBdKg0x1RZg1EKK8gF9kAQc1lJpOD X-Received: by 2002:a92:c7c1:0:b0:346:6874:384f with SMTP id g1-20020a92c7c1000000b003466874384fmr10004886ilk.3.1690884439912; Tue, 01 Aug 2023 03:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690884439; cv=none; d=google.com; s=arc-20160816; b=CegJfaPsJDArfomYP4ajpvvXJRDUT5WThi51p5TTv4zEP1BqcMBOgh921L0n3OEi79 +9iKPBdfvOgOdeM01rKHMTd/uv3NseYFGzPgWq2ts8RcQl6XwfjgokZdFjQ6Hn4JI1Tt 1j+e6cPqOn5B2qGUJ5queiN9DqA6jbwxFcB0BbG+++v/HljUaC1NP2BiNv4Troh2RxpW +rsoDRAMZxsnjkJF62FsQzOh5PIY0vfQB3hhpdRfJle9K68s3bCmcPVzDNh5LSj2lyi/ SfheW5OX7eHPipVaZWMLxP4cIQrZaa2fZEgPwZcN81kxXz9P/KikR1rgAevVAeOeEYzq 6wOg== 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=FXAVoh0HrLFjJ6udmgUzc6NG888vvx3QAIi2q+0/r1Q=; fh=uzQ2njGvRnNicAzoECU0n2pvDAEB0craVlwUtEtLFVc=; b=kTuOd7sqPEWB/dOYCo1d5kbZQEbimKstldoGt2/h8JXhFZ5Dw99++IWJe5+oUnCOPM fbiRkscw3RxcgsSRnCtaT2cnxCt1PhY+zZFKYQo8zrgtPu9SaX3oUZl8dxXb5o8qlum7 0398PjjSrlcoNw2eL5cYzdVYlKT1ukIXJUu1jKhsf3sMhtTGwyJelR6dIlrIBzCkl4zo PZ5mBpeLaIHEQlBuJDNwydS9at4THPI0+NxUZUqCpyO2wHJMx5DRO9k11tBJOXdU1x7r wIEyJW6MDAGwJEdL8TZgCXLp+Q6v1wVHQQIVB39EpDe8A3cYKehU0s/CfzFKqz0nZdR6 MlMg== 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 g9-20020a17090a9b8900b00267f99d5b8csi9008424pjp.20.2023.08.01.03.07.06; Tue, 01 Aug 2023 03:07:19 -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 S233666AbjHAJvr (ORCPT + 99 others); Tue, 1 Aug 2023 05:51:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233665AbjHAJv3 (ORCPT ); Tue, 1 Aug 2023 05:51:29 -0400 Received: from out28-169.mail.aliyun.com (out28-169.mail.aliyun.com [115.124.28.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48E04171B for ; Tue, 1 Aug 2023 02:51:04 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.0973273|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0380037-4.3357e-05-0.961953;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047208;MF=sunran001@208suo.com;NM=1;PH=DS;RN=7;RT=7;SR=0;TI=SMTPD_---.U5shFFo_1690883457; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U5shFFo_1690883457) by smtp.aliyun-inc.com; Tue, 01 Aug 2023 17:50:58 +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 smu9_driver_if.h Date: Tue, 1 Aug 2023 09:50:56 +0000 Message-Id: <20230801095056.8120-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_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: space prohibited before open square bracket '[' Signed-off-by: Ran Sun --- .../drm/amd/pm/powerplay/inc/smu9_driver_if.h | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/inc/smu9_driver_if.h b/drivers/gpu/drm/amd/pm/powerplay/inc/smu9_driver_if.h index faae4b918d90..2c69a5694f94 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/inc/smu9_driver_if.h +++ b/drivers/gpu/drm/amd/pm/powerplay/inc/smu9_driver_if.h @@ -178,20 +178,20 @@ typedef struct { uint8_t padding8_2[2]; /* SOC Frequencies */ - PllSetting_t GfxclkLevel [NUM_GFXCLK_DPM_LEVELS]; + PllSetting_t GfxclkLevel[NUM_GFXCLK_DPM_LEVELS]; - uint8_t SocclkDid [NUM_SOCCLK_DPM_LEVELS]; /* DID */ - uint8_t SocDpmVoltageIndex [NUM_SOCCLK_DPM_LEVELS]; + uint8_t SocclkDid[NUM_SOCCLK_DPM_LEVELS]; /* DID */ + uint8_t SocDpmVoltageIndex[NUM_SOCCLK_DPM_LEVELS]; - uint8_t VclkDid [NUM_UVD_DPM_LEVELS]; /* DID */ - uint8_t DclkDid [NUM_UVD_DPM_LEVELS]; /* DID */ - uint8_t UvdDpmVoltageIndex [NUM_UVD_DPM_LEVELS]; + uint8_t VclkDid[NUM_UVD_DPM_LEVELS]; /* DID */ + uint8_t DclkDid[NUM_UVD_DPM_LEVELS]; /* DID */ + uint8_t UvdDpmVoltageIndex[NUM_UVD_DPM_LEVELS]; - uint8_t EclkDid [NUM_VCE_DPM_LEVELS]; /* DID */ - uint8_t VceDpmVoltageIndex [NUM_VCE_DPM_LEVELS]; + uint8_t EclkDid[NUM_VCE_DPM_LEVELS]; /* DID */ + uint8_t VceDpmVoltageIndex[NUM_VCE_DPM_LEVELS]; - uint8_t Mp0clkDid [NUM_MP0CLK_DPM_LEVELS]; /* DID */ - uint8_t Mp0DpmVoltageIndex [NUM_MP0CLK_DPM_LEVELS]; + uint8_t Mp0clkDid[NUM_MP0CLK_DPM_LEVELS]; /* DID */ + uint8_t Mp0DpmVoltageIndex[NUM_MP0CLK_DPM_LEVELS]; DisplayClockTable_t DisplayClockTable[DSPCLK_COUNT][NUM_DSPCLK_LEVELS]; QuadraticInt_t DisplayClock2Gfxclk[DSPCLK_COUNT]; -- 2.17.1