Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp644194rwo; Wed, 2 Aug 2023 01:35:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlE0qSHvYsB8oJcLR0S4ZxpWAeOXHvfB6LeGSdwdjW0I9eZVmPv2511nGVTLpLYB0jGhtr1X X-Received: by 2002:a17:90b:4b8c:b0:268:1b7f:257b with SMTP id lr12-20020a17090b4b8c00b002681b7f257bmr11685416pjb.24.1690965332759; Wed, 02 Aug 2023 01:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690965332; cv=none; d=google.com; s=arc-20160816; b=RJ9XrOpVX69VGT0esplDYcvhQ0wa735nmrlqiQL4mEkgBo3xdoN5NiMCviaUdMiAJd fS8BqJxUzHpQS1YYVbEXNdt55nR31uB4qWoIC7WGnjAaIUWDm0kTzRkHZVROxVTjjIO3 bbZNrfChpwCWaBNSzEMxNQYL9SfZlKlioesYGp6CxBbo3MomUM30UrlUeBxM7oqgodDl DidDhXSS9MGE67lYWKky9Yy/jN1PBALb7oosrgz5RDW2nSq/YJgrB1T1IeUdAsX3ejst 071KpkzjwnD+Z3TU0pk3qBrkD64Cnn3xMhKSVNIcpGWDy7pWzpWFZ0adoIAmP6p4NUH+ u6qA== 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=azQBxg+Um8c7aJ2plR20ryZEZmi0oNWBAkz0Bw5Zs9g=; fh=M7zDVNG5wYj+Ni7TE5shUh1U8LRNWB+keJIKRth6hag=; b=OXixFG9cDeZ2ywle9dyrn76h6+IDgNe12H64bqAc4DUXWfM4esPCbdTJooMv5GiNaA cubz/EMrZYJPABtvV8P2zJg1CyB8J/MOBGwfHdul3QLBb5PV2FUte6WzAAgWaaHX/aJk Lclh44khuB4bby3wMAzeb6VPj5vR/H8NbdgWQXT9l6sbRDgk39wxGHbUh5+BHJfGeKsu V4MsOXzU1czw7+u39SXXFgv9VICCk7qYa7sS4TXx+Cr6E0FMCt2ju5SdCiIVDzPZu7fI 2DgtyA0jPgbQUB8BtK6z3Or2EIXT3/OQsv3lvaJfV764CB7LAqwCu3JUkW2Eb8dFUJJ1 MfeQ== 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 z4-20020a17090ad78400b00262fc8d4dfesi848673pju.108.2023.08.02.01.35.20; Wed, 02 Aug 2023 01:35:32 -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 S230494AbjHBHqL (ORCPT + 99 others); Wed, 2 Aug 2023 03:46:11 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,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: spaces required around that '==' (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/amdgpu/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 *adev) if (status & 2) break; mdelay(10); - if (amdgpu_emu_mode==1) + if (amdgpu_emu_mode == 1) msleep(1); } - if (amdgpu_emu_mode==1) { + if (amdgpu_emu_mode == 1) { r = -1; if (status & 2) { r = 0; @@ -1959,7 +1959,7 @@ static int vcn_v4_0_set_powergating_state(void *handle, enum amd_powergating_sta return 0; } - if(state == adev->vcn.cur_state) + if (state == adev->vcn.cur_state) return 0; if (state == AMD_PG_STATE_GATE) @@ -1967,7 +1967,7 @@ static int vcn_v4_0_set_powergating_state(void *handle, enum amd_powergating_sta else ret = vcn_v4_0_start(adev); - if(!ret) + if (!ret) adev->vcn.cur_state = state; return ret; @@ -2101,8 +2101,7 @@ static const struct amd_ip_funcs vcn_v4_0_ip_funcs = { .set_powergating_state = vcn_v4_0_set_powergating_state, }; -const struct amdgpu_ip_block_version vcn_v4_0_ip_block = -{ +const struct amdgpu_ip_block_version vcn_v4_0_ip_block = { .type = AMD_IP_BLOCK_TYPE_VCN, .major = 4, .minor = 0, -- 2.17.1