From nobody Sun Feb 8 11:59:30 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D72E4C001DE for ; Wed, 2 Aug 2023 07:46:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233650AbjHBHqM (ORCPT ); Wed, 2 Aug 2023 03:46:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233128AbjHBHpj (ORCPT ); Wed, 2 Aug 2023 03:45:39 -0400 Received: from out28-105.mail.aliyun.com (out28-105.mail.aliyun.com [115.124.28.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F1D53595 for ; Wed, 2 Aug 2023 00:43:23 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1447226|-1;CH=blue;DM=|OVERLOAD|false|;DS=CONTINUE|ham_system_inform|0.180895-0.00661834-0.812487;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047211;MF=sunran001@208suo.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.U6d8ofZ_1690962195; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U6d8ofZ_1690962195) by smtp.aliyun-inc.com; Wed, 02 Aug 2023 15:43:17 +0800 From: Ran Sun To: alexander.deucher@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ran Sun Subject: [PATCH] drm/amdgpu: Clean up errors in vcn_v4_0.c Date: Wed, 2 Aug 2023 07:43:15 +0000 Message-Id: <20230802074315.13688-1-sunran001@208suo.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Fix the following errors reported by checkpatch: spaces required around that '=3D=3D' (ctx:VxV) ERROR: space required before the open parenthesis '(' ERROR: that open brace { should be on the previous line Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c b/drivers/gpu/drm/amd/am= dgpu/vcn_v4_0.c index 6089c7deba8a..ef5b16061e96 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c @@ -1139,11 +1139,11 @@ static int vcn_v4_0_start(struct amdgpu_device *ade= v) if (status & 2) break; mdelay(10); - if (amdgpu_emu_mode=3D=3D1) + if (amdgpu_emu_mode =3D=3D 1) msleep(1); } =20 - if (amdgpu_emu_mode=3D=3D1) { + if (amdgpu_emu_mode =3D=3D 1) { r =3D -1; if (status & 2) { r =3D 0; @@ -1959,7 +1959,7 @@ static int vcn_v4_0_set_powergating_state(void *handl= e, enum amd_powergating_sta return 0; } =20 - if(state =3D=3D adev->vcn.cur_state) + if (state =3D=3D adev->vcn.cur_state) return 0; =20 if (state =3D=3D AMD_PG_STATE_GATE) @@ -1967,7 +1967,7 @@ static int vcn_v4_0_set_powergating_state(void *handl= e, enum amd_powergating_sta else ret =3D vcn_v4_0_start(adev); =20 - if(!ret) + if (!ret) adev->vcn.cur_state =3D state; =20 return ret; @@ -2101,8 +2101,7 @@ static const struct amd_ip_funcs vcn_v4_0_ip_funcs = =3D { .set_powergating_state =3D vcn_v4_0_set_powergating_state, }; =20 -const struct amdgpu_ip_block_version vcn_v4_0_ip_block =3D -{ +const struct amdgpu_ip_block_version vcn_v4_0_ip_block =3D { .type =3D AMD_IP_BLOCK_TYPE_VCN, .major =3D 4, .minor =3D 0, --=20 2.17.1