Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1480812rdd; Wed, 10 Jan 2024 23:46:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEeLnXfQ7IMu/9bIwFPzSZ0X7Qq4ywY/JcKrnpbTTHiDUoGwGRmPUq6NWx55pLrKwCxIBoX X-Received: by 2002:a17:906:b16:b0:a28:c7fe:5458 with SMTP id u22-20020a1709060b1600b00a28c7fe5458mr335725ejg.94.1704959211024; Wed, 10 Jan 2024 23:46:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704959211; cv=none; d=google.com; s=arc-20160816; b=yeEGzP0b9Dqr6hhskgx3bLtaNsFNjo2a81bd6aqrBkSndQJDZdJeH0hyuf5pRMi9i9 /UXrRuJlfLbMs1EBhmTXxSfe2/LNvptPr6p4zpK7rslImtLmjyIvYoFxPs6z1hnShIfh J/iERo3xx4KyBWQNPdsO60Z9FsH2+U/RRi2RTXAeUYsfVn/2FAQ2+TkXgBH53dtcRS+t 8r4sP6oJeNRw6rwsulTSxSzg6W4mAx3uZNF3G7lZAZNE/LyWppVz8f75VNUdpLGP91Ni M0dl8Bu16qWTkCvjLWU6H8pajfJLh2ZVqz+bdvn0eKd4E59HnOxom9Mx9Q5vWU31sOK6 NvOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=PEj/IefDs7XXAmaMbGQ5wDa1llgebw/3KVMWGYgPYmc=; fh=UUD9beM69Au7Qwz6m9wyKdgHdaSGHRPChCEGEbftc6w=; b=dMsuk1CB0ZwBa1tOB6ahFXqrDKkKPZlfHl/YVP1BmyAcN9cD4co23hH2R/8OguP2If JmjRKOA5LNT3Kft6f+wnymf5YadPhSCbJKc5umdulEwTbb5R2ZL3+VGNdgVcAVc4yPZU tgSzwfEjqvN8roBNFa4xkhSb7R6M7NgWamA0J5LGmGCZrFEyQzLGhb+pxrkqwOwfwDK/ ibRT91CrZqMPElUBtjTvbgKriUvSRj8SPDWKzxBGVwhQHbuaoHstLS96dtv1ObarVIK/ cy9CdRsz9grJJueD9RloA4JZPlB6AHvnDKWRjU1bq8kepeADC764IcjktKW8zUOY1ezs RQ0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b="Wtxax/nG"; spf=pass (google.com: domain of linux-kernel+bounces-23165-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23165-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id jp8-20020a170906f74800b00a2c29ce2716si257529ejb.315.2024.01.10.23.46.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 23:46:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23165-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b="Wtxax/nG"; spf=pass (google.com: domain of linux-kernel+bounces-23165-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23165-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C123B1F244BC for ; Thu, 11 Jan 2024 07:46:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 423CEDF51; Thu, 11 Jan 2024 07:46:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="Wtxax/nG" Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.2]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 73783DDCA for ; Thu, 11 Jan 2024 07:46:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=PEj/IefDs7XXAmaMbG Q5wDa1llgebw/3KVMWGYgPYmc=; b=Wtxax/nGP6lTaC9E+BYyWnPHZpZ2/rJwCK NeokAYmzy9ATr6eYS6IxN0InPX3MmuOcMprnR0bJZ4UTfKp5qaM8rXdvEuCdcaRp epbIZEAqqGnpScOSK4It4Htfgnr41QWulU0CBRYeREvD7fOdJwPDe6ohb9Z1+96y qQVUhX4CM= Received: from localhost.localdomain (unknown [182.148.14.173]) by gzga-smtp-mta-g0-5 (Coremail) with SMTP id _____wDnby_GnJ9lzO+SAA--.17065S2; Thu, 11 Jan 2024 15:46:15 +0800 (CST) From: GuoHua Chen To: daniel@ffwll.ch, Xinhui.Pan@amd.com, airlied@gmail.com, christian.koenig@amd.com, alexander.deucher@amd.com Cc: linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, GuoHua Chen Subject: [PATCH] drm/radeon/ni_dpm: Clean up errors in ni_dpm.c Date: Thu, 11 Jan 2024 07:46:13 +0000 Message-Id: <20240111074613.10938-1-chenguohua_716@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID:_____wDnby_GnJ9lzO+SAA--.17065S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7tFWrKF43Gr4ktw47tFW8JFb_yoW8Jw43pF 43W340grZ5tw4ruF43AayUArya93Z7G3WI9w4UAw4fW3WDZryjkFnxCrs3Ar97WrZY9rWI qr1ktr13XF4xArDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UFdgAUUUUU= X-CM-SenderInfo: xfkh0w5xrk3tbbxrlqqrwthudrp/xtbBEARi1mVOBk6-bwABsS Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Fix the following errors reported by checkpatch: ERROR: open brace '{' following struct go on the same line Signed-off-by: GuoHua Chen --- drivers/gpu/drm/radeon/ni_dpm.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/radeon/ni_dpm.h b/drivers/gpu/drm/radeon/ni_dpm.h index 74e301936906..4e3e7303e035 100644 --- a/drivers/gpu/drm/radeon/ni_dpm.h +++ b/drivers/gpu/drm/radeon/ni_dpm.h @@ -59,8 +59,7 @@ struct ni_mc_reg_table { #define NISLANDS_MCREGISTERTABLE_FIRST_DRIVERSTATE_SLOT 2 -enum ni_dc_cac_level -{ +enum ni_dc_cac_level { NISLANDS_DCCAC_LEVEL_0 = 0, NISLANDS_DCCAC_LEVEL_1, NISLANDS_DCCAC_LEVEL_2, @@ -72,8 +71,7 @@ enum ni_dc_cac_level NISLANDS_DCCAC_MAX_LEVELS }; -struct ni_leakage_coeffients -{ +struct ni_leakage_coeffients { u32 at; u32 bt; u32 av; @@ -83,8 +81,7 @@ struct ni_leakage_coeffients u32 t_ref; }; -struct ni_cac_data -{ +struct ni_cac_data { struct ni_leakage_coeffients leakage_coefficients; u32 i_leakage; s32 leakage_minimum_temperature; @@ -100,8 +97,7 @@ struct ni_cac_data u8 lts_truncate_n; }; -struct ni_cac_weights -{ +struct ni_cac_weights { u32 weight_tcp_sig0; u32 weight_tcp_sig1; u32 weight_ta_sig; -- 2.17.1