Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1499645rdd; Thu, 11 Jan 2024 00:35:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGAWG18H8Nu3EsJKcuBJ+Lm/cm+XWxhJeNdOopBQQSwxnkXSscrATeiwcKQjjXN6eDgKGsK X-Received: by 2002:a25:bfc6:0:b0:dbd:88a3:c017 with SMTP id q6-20020a25bfc6000000b00dbd88a3c017mr760586ybm.105.1704962118906; Thu, 11 Jan 2024 00:35:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704962118; cv=none; d=google.com; s=arc-20160816; b=mYcoIEI6nikblWrKCN4Tvw8ryTJWSXwOxelZC6RZcZytuc301ymAnaOmhPrbGwSsj/ Ljm7sWU7KkTDQtOHmHOkwKrakb3//Ce2YqCovyWbPvXgF3BWyuT098yd4FJ01c5kni6i Wn3t5zlacbiJR8UBLr2/hmFLe6nejj1l08Bc7VZLv0Z8Ijqo3k2RHMryg2mh6hGB9GOT eh1nTiBJJc5GNICAqcGRB3wC/85UEwX0jeBIas6Zjx/h6EaNrkoKYNZ7QTXulwjAATdR N3ZhMvh6S1xr27FXusujOoz5jqixrFpiF+Pm/Ct57gstRtX8kIsNiburNbk10o+Fo/lp z79A== 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=4/Jx3JBI1HjdTdG8JOPlsexBLCUAbZM6wJbiVlJEdV0=; fh=4dDtB2XyWR9RWAcicoutU8AzROb5f++Xr/vxFA2QuxE=; b=p08OY08RI9+a4tdvxcqXWRyxNfD7vd6Ay4LLTeK2XlMVU50RZ8iz0I+AQVK8l3lu8S NWihXTxb2hVQZJTrzOWYObnh5N5SUjqrqHTG0P1UH88f6RyyXA3CRvRyZsAItkU/2JIz T0CXv7km9/lxbOC0LD42qY+y1t5eE8RVlKw9URemz9Nx85MkarH+Jvz+ub6z0ub1HBxK N7iXY6hHmEq8/L2nEF8lGOknOdpDwpuTY1jm+MZtQGyNe/EYdQW01UgI5S0/nQ8yxIyK 0rcGkt38MH7a1BdDVXZ99m+uBt2u/+YAAnFO99NadyT4Nmb+c+2JRk3QLr8Z3qCqcT2D uyFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b="Vr0Vujg/"; spf=pass (google.com: domain of linux-kernel+bounces-23227-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23227-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e15-20020a05622a110f00b0042996e5e254si521570qty.142.2024.01.11.00.35.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 00:35:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23227-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b="Vr0Vujg/"; spf=pass (google.com: domain of linux-kernel+bounces-23227-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23227-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EC52B1C22091 for ; Thu, 11 Jan 2024 08:35:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3757BFBF0; Thu, 11 Jan 2024 08:35:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="Vr0Vujg/" Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.3]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42E76F9D6 for ; Thu, 11 Jan 2024 08:35:02 +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=4/Jx3JBI1HjdTdG8JO PlsexBLCUAbZM6wJbiVlJEdV0=; b=Vr0Vujg/9yithDZdETK1ydxLa6oOHOFsAs r/X1Y6mLJw7xhhlzG9ky7b/Mi/dP++d+EodnBo/FXuxxAiYIRPNUWaXAME+SBC2w 7bGxcimoOBzsFBwVMr0YZxMwzeGm9LviXGV9gvWJlwguoGlUwcT7iR5puVU+HSIp EfGpSWB7w= Received: from localhost.localdomain (unknown [182.148.14.173]) by gzga-smtp-mta-g0-0 (Coremail) with SMTP id _____wD3X7AqqJ9lWq2UAA--.19387S2; Thu, 11 Jan 2024 16:34:50 +0800 (CST) From: GuoHua Chen To: daniel@ffwll.ch, Xinhui.Pan@amd.com, alexander.deucher@amd.com, airlied@gmail.com, christian.koenig@amd.com Cc: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, GuoHua Chen Subject: [PATCH] drm/radeon: Clean up errors in si_dpm.h Date: Thu, 11 Jan 2024 08:34:48 +0000 Message-Id: <20240111083448.12238-1-chenguohua_716@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID:_____wD3X7AqqJ9lWq2UAA--.19387S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7tFWrKF1DWF1xKF1rXw4Utwb_yoW8uw4UpF srC343CrWkJr43ua43JFWUCF9I93srJrWIka1DG3yFy3WUZ34kCFn0kr4fZryxGrWF9w12 yrn2gFy5Ww1a9rDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UFdgAUUUUU= X-CM-SenderInfo: xfkh0w5xrk3tbbxrlqqrwthudrp/1tbiqAti1mVOBlDTuwAAsC 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 ERROR: open brace '{' following enum go on the same line Signed-off-by: GuoHua Chen --- drivers/gpu/drm/radeon/si_dpm.h | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/radeon/si_dpm.h b/drivers/gpu/drm/radeon/si_dpm.h index aa857906ef93..4887edebd348 100644 --- a/drivers/gpu/drm/radeon/si_dpm.h +++ b/drivers/gpu/drm/radeon/si_dpm.h @@ -26,15 +26,13 @@ #include "ni_dpm.h" #include "sislands_smc.h" -enum si_cac_config_reg_type -{ +enum si_cac_config_reg_type { SISLANDS_CACCONFIG_MMR = 0, SISLANDS_CACCONFIG_CGIND, SISLANDS_CACCONFIG_MAX }; -struct si_cac_config_reg -{ +struct si_cac_config_reg { u32 offset; u32 mask; u32 shift; @@ -42,8 +40,7 @@ struct si_cac_config_reg enum si_cac_config_reg_type type; }; -struct si_powertune_data -{ +struct si_powertune_data { u32 cac_window; u32 l2_lta_window_size_default; u8 lts_truncate_default; @@ -56,8 +53,7 @@ struct si_powertune_data bool enable_powertune_by_default; }; -struct si_dyn_powertune_data -{ +struct si_dyn_powertune_data { u32 cac_leakage; s32 leakage_minimum_temperature; u32 wintime; @@ -68,8 +64,7 @@ struct si_dyn_powertune_data bool disable_uvd_powertune; }; -struct si_dte_data -{ +struct si_dte_data { u32 tau[SMC_SISLANDS_DTE_MAX_FILTER_STAGES]; u32 r[SMC_SISLANDS_DTE_MAX_FILTER_STAGES]; u32 k; @@ -122,8 +117,7 @@ struct si_mc_reg_table { #define SISLANDS_MCREGISTERTABLE_ULV_SLOT 2 #define SISLANDS_MCREGISTERTABLE_FIRST_DRIVERSTATE_SLOT 3 -struct si_leakage_voltage_entry -{ +struct si_leakage_voltage_entry { u16 voltage; u16 leakage_index; }; @@ -131,8 +125,7 @@ struct si_leakage_voltage_entry #define SISLANDS_LEAKAGE_INDEX0 0xff01 #define SISLANDS_MAX_LEAKAGE_COUNT 4 -struct si_leakage_voltage -{ +struct si_leakage_voltage { u16 count; struct si_leakage_voltage_entry entries[SISLANDS_MAX_LEAKAGE_COUNT]; }; -- 2.17.1