Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2879231rwo; Mon, 24 Jul 2023 02:46:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlGG0y112sdWfTfulk8LX19nAVltE3MW5S8IaOrlRqMf9HAZ5hn+XJvi3O24owBKH4zO9P30 X-Received: by 2002:a17:906:74d1:b0:992:a31f:f584 with SMTP id z17-20020a17090674d100b00992a31ff584mr10557353ejl.31.1690191991535; Mon, 24 Jul 2023 02:46:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690191991; cv=none; d=google.com; s=arc-20160816; b=l6QMoT1vu4LQrzlJJaAjamjLJ1zIAgqEXR/c9wQC2XHnJpYCfVOBFa1GKXO6Pymx4p LkkmsmxZNY9d29cCKw+VOCfAO8urtI2JvPToMSj83p+yIXQ1RZ2iLs8MrluAYEM4xAzt IXsB06hM30cGMftMNNe/cqNeKmANYDUWHNXpsQ3PL4uUbJXxjW3F8UFUkukPCg/N56gk 4ODUfXbWm984ju5rAU3Mvshz8gSD/KiuLoLQHyPexGR5Md+Xo9LkOA0RVQaejg7h4kf8 hskJ0CjsGuskLloiHIkNh3vu1Ata4IHVVqWF4J5onkd5i4CvZFcABiK8yhJ2O4gjCkGr NbVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=YOJWF65uaHQIgfmq4llE6iiC1k0Fp2eKsImDY5cUdsk=; fh=7mrb+jEz4ldW4HYDrM78dc1rA6GIHF/xkKOCEiigzvE=; b=CKhj65tHmC3UArCise8JbB/Y68fsk7QzWQ5KHdxNxB2wlhZR0qy8kWqrliaI+Q5BIg 8letcTD2WUhy1c2GPwpDFApC3CUpjYzEF8GYptZpg1JPKE770uOL8/TQbvN3r7D/FSfn tncHUKWF/ot48Yx3T6IC1tvvI4y1yGEMNeOmmzPLlH2pY4I5yVKEUzyxmvOCeCSzBxww DzHTnwTGfvJXfOnwAzibHOEfqZbLzNFA+4q5IHryUTEsK7d1N/Sk/ZdJnFalZswfnIEQ t21CUjjxIR6+47pcUAV9QyQ5VQtfHAkSVKl6p+cu/EAgfNDzKunRjNThL8yMx1roXgPl nG/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@208.org header.s=dkim header.b=djs+BG8B; 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 l18-20020a17090612d200b0098dd7b3684csi6188038ejb.994.2023.07.24.02.46.07; Mon, 24 Jul 2023 02:46:31 -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; dkim=temperror (no key for signature) header.i=@208.org header.s=dkim header.b=djs+BG8B; 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 S232135AbjGXJIc (ORCPT + 99 others); Mon, 24 Jul 2023 05:08:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232080AbjGXJIZ (ORCPT ); Mon, 24 Jul 2023 05:08:25 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 508FF12A for ; Mon, 24 Jul 2023 02:08:23 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R8Z842P8qzBRx5V for ; Mon, 24 Jul 2023 17:08:20 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1690189700; x=1692781701; bh=rd5XJCKeCCCstWQq8oezxVrRBtx 3Uez3owR/99sLpv4=; b=djs+BG8BS/oEA3gUtU2Vs8S/t+VqReo+b8rt5yBVGHx iHxCPZTwbMxtdVlnciZDbAX0WGxJJt9Z3XMNzxub1ropHhojLDs0vLYXY+3Idc8x 5ng32fdc0OGgXpcPVQndvxu6QxUnS1prKErEkwX3dzclqctXVIAmOVIeG0ypYi1f qag+sA+lq7T8Im1GVwjiKNN7RV5VG4e+TKF9n6Hf/7jCZ5n7HqGekoPNyKrd6rpP X3k/AmBehCd9O+yLWNB6Ucalj/GUo3b3GQw8rFsyQi96Gpr6g8TicvPfOlRUkrh6 OnqZIRy+XJOPjz+bfjVbHSHWuUlJBrRZcL3kRZDO6Hw== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id wt3io8A_CfzW for ; Mon, 24 Jul 2023 17:08:20 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R8Z836nC2zBKnld; Mon, 24 Jul 2023 17:08:19 +0800 (CST) MIME-Version: 1.0 Date: Mon, 24 Jul 2023 17:08:19 +0800 From: sunran001@208suo.com To: alexander.deucher@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amd/pm: open brace '{' following struct go on the same line In-Reply-To: <20230724090624.9699-1-xujianghui@cdjrlc.com> References: <20230724090624.9699-1-xujianghui@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: <5ce64e06635dbf038d73452098fd0163@208suo.com> X-Sender: sunran001@208suo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RDNS_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 ERROR: open brace '{' following struct go on the same line Signed-off-by: Ran Sun --- .../amd/pm/swsmu/inc/smu_v13_0_7_pptable.h | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0_7_pptable.h b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0_7_pptable.h index eadbe0149cae..eb694f9f556d 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0_7_pptable.h +++ b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0_7_pptable.h @@ -41,8 +41,7 @@ #define SMU_13_0_7_PP_OVERDRIVE_VERSION 0x83 // OverDrive 8 Table Version 0.2 #define SMU_13_0_7_PP_POWERSAVINGCLOCK_VERSION 0x01 // Power Saving Clock Table Version 1.00 -enum SMU_13_0_7_ODFEATURE_CAP -{ +enum SMU_13_0_7_ODFEATURE_CAP { SMU_13_0_7_ODCAP_GFXCLK_LIMITS = 0, SMU_13_0_7_ODCAP_UCLK_LIMITS, SMU_13_0_7_ODCAP_POWER_LIMIT, @@ -62,8 +61,7 @@ enum SMU_13_0_7_ODFEATURE_CAP SMU_13_0_7_ODCAP_COUNT, }; -enum SMU_13_0_7_ODFEATURE_ID -{ +enum SMU_13_0_7_ODFEATURE_ID { SMU_13_0_7_ODFEATURE_GFXCLK_LIMITS = 1 << SMU_13_0_7_ODCAP_GFXCLK_LIMITS, //GFXCLK Limit feature SMU_13_0_7_ODFEATURE_UCLK_LIMITS = 1 << SMU_13_0_7_ODCAP_UCLK_LIMITS, //UCLK Limit feature SMU_13_0_7_ODFEATURE_POWER_LIMIT = 1 << SMU_13_0_7_ODCAP_POWER_LIMIT, //Power Limit feature @@ -85,8 +83,7 @@ enum SMU_13_0_7_ODFEATURE_ID #define SMU_13_0_7_MAX_ODFEATURE 32 //Maximum Number of OD Features -enum SMU_13_0_7_ODSETTING_ID -{ +enum SMU_13_0_7_ODSETTING_ID { SMU_13_0_7_ODSETTING_GFXCLKFMAX = 0, SMU_13_0_7_ODSETTING_GFXCLKFMIN, SMU_13_0_7_ODSETTING_UCLKFMIN, @@ -123,8 +120,7 @@ enum SMU_13_0_7_ODSETTING_ID }; #define SMU_13_0_7_MAX_ODSETTING 64 //Maximum Number of ODSettings -enum SMU_13_0_7_PWRMODE_SETTING -{ +enum SMU_13_0_7_PWRMODE_SETTING { SMU_13_0_7_PMSETTING_POWER_LIMIT_QUIET = 0, SMU_13_0_7_PMSETTING_POWER_LIMIT_BALANCE, SMU_13_0_7_PMSETTING_POWER_LIMIT_TURBO, @@ -144,8 +140,7 @@ enum SMU_13_0_7_PWRMODE_SETTING }; #define SMU_13_0_7_MAX_PMSETTING 32 //Maximum Number of PowerMode Settings -struct smu_13_0_7_overdrive_table -{ +struct smu_13_0_7_overdrive_table { uint8_t revision; //Revision = SMU_13_0_7_PP_OVERDRIVE_VERSION uint8_t reserve[3]; //Zero filled field reserved for future use uint32_t feature_count; //Total number of supported features @@ -156,8 +151,7 @@ struct smu_13_0_7_overdrive_table int16_t pm_setting[SMU_13_0_7_MAX_PMSETTING]; //Optimized power mode feature settings }; -enum SMU_13_0_7_PPCLOCK_ID -{ +enum SMU_13_0_7_PPCLOCK_ID { SMU_13_0_7_PPCLOCK_GFXCLK = 0, SMU_13_0_7_PPCLOCK_SOCCLK, SMU_13_0_7_PPCLOCK_UCLK, @@ -175,8 +169,7 @@ enum SMU_13_0_7_PPCLOCK_ID }; #define SMU_13_0_7_MAX_PPCLOCK 16 //Maximum Number of PP Clocks -struct smu_13_0_7_powerplay_table -{ +struct smu_13_0_7_powerplay_table { struct atom_common_table_header header; //For PLUM_BONITO, header.format_revision = 15, header.content_revision = 0 uint8_t table_revision; //For PLUM_BONITO, table_revision = 2 uint8_t padding;