Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp593104rwo; Wed, 2 Aug 2023 00:32:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlHm40xxk4HXbBk0ZLbKrHHjaUOGPHl8SFSb5Car+KBge5leEfYOQNNE02ZYx1JR25QYHQQT X-Received: by 2002:a05:6402:1342:b0:51e:166d:8e95 with SMTP id y2-20020a056402134200b0051e166d8e95mr4434788edw.4.1690961527039; Wed, 02 Aug 2023 00:32:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690961527; cv=none; d=google.com; s=arc-20160816; b=HLeUxe+1TJ1yrbbAOvFMOlLx5tiPQgHM2yC69hKV5pUR+pE/twoXQMx1yyqKhH+usl T6eAjBkYb1+nZ42Dia3prD0sXxEcg6/bgidmb5kMByDsGl8TK0fx5j59tXe19cVYMrTL vyaelc48Il5iPuavI3REnpw9LI4rrOZpb7cBN+ZYmTyfcmTNQsPhu0ZvIV1d0VvWeaia JZwWZ5edYoz6vFZI2qDzBq9WQHioI/Zrsj+vsX6XCD4IR7K2C8r025iCnRndVX7psQGf 8YFRDa1noUVNrq/TWivQFjsQ08pbNJnly/sugVjdkLj1F3IeM+Hjhq2ea7+UcfcrNEHj UTUQ== 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=CLTn5YTv+tTCK6Z+rMrCDhxA3xu0MffYzYdx8imNv+k=; fh=M7zDVNG5wYj+Ni7TE5shUh1U8LRNWB+keJIKRth6hag=; b=inKnMPQUbK7LwgxyEiiJVuu27U+rWF0oqEtRhIGXhVEASHGfC1lH9nFIwn4q+1/Y4W Z02qF336CTwcMQy7mY0HHWzCf9qG183lsTq7PuRd/VR2ZfCcGwSh5LP2fcLhUt4dkgrV GtNLywnuiyDKgfKbBqyg8vLdBaP15yo1+6xtpalUzHpAWPfzN/mx/bSpjbvzLqHj0fTZ EB3rs4xTuB79hMxzbf3WcwybVG4FOn0o6cZDn3ENzPFdaPYDei9ujd0TK7CFX7mGfozj RQ/4CmuGKEa4GJcKrTpf0l34nIY3tK/YxNyiuH4Ho8RiMjQv6h/RIGoufOG8GCK0Gax8 S3KQ== 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 r15-20020a056402034f00b00522c9614859si845727edw.623.2023.08.02.00.31.40; Wed, 02 Aug 2023 00:32:07 -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 S232559AbjHBHMP (ORCPT + 99 others); Wed, 2 Aug 2023 03:12:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229630AbjHBHMM (ORCPT ); Wed, 2 Aug 2023 03:12:12 -0400 Received: from out28-5.mail.aliyun.com (out28-5.mail.aliyun.com [115.124.28.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6D111705 for ; Wed, 2 Aug 2023 00:12:10 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1645156|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0352353-0.000645299-0.964119;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047207;MF=sunran001@208suo.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.U6anUDl_1690960322; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U6anUDl_1690960322) by smtp.aliyun-inc.com; Wed, 02 Aug 2023 15:12:04 +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/jpeg: Clean up errors in vcn_v1_0.c Date: Wed, 2 Aug 2023 07:12:01 +0000 Message-Id: <20230802071201.12717-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_NONE, RCVD_IN_MSPIKE_H5,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: ERROR: space required before the open parenthesis '(' ERROR: space prohibited after that '~' (ctx:WxW) Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c index 16feb491adf5..25ba27151ac0 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c @@ -473,7 +473,7 @@ static void vcn_v1_0_disable_clock_gating(struct amdgpu_device *adev) if (adev->cg_flags & AMD_CG_SUPPORT_VCN_MGCG) data |= 1 << UVD_CGC_CTRL__DYN_CLOCK_MODE__SHIFT; else - data &= ~ UVD_CGC_CTRL__DYN_CLOCK_MODE_MASK; + data &= ~UVD_CGC_CTRL__DYN_CLOCK_MODE_MASK; data |= 1 << UVD_CGC_CTRL__CLK_GATE_DLY_TIMER__SHIFT; data |= 4 << UVD_CGC_CTRL__CLK_OFF_DELAY__SHIFT; @@ -1772,7 +1772,7 @@ static int vcn_v1_0_set_powergating_state(void *handle, int ret; struct amdgpu_device *adev = (struct amdgpu_device *)handle; - if(state == adev->vcn.cur_state) + if (state == adev->vcn.cur_state) return 0; if (state == AMD_PG_STATE_GATE) @@ -1780,7 +1780,7 @@ static int vcn_v1_0_set_powergating_state(void *handle, else ret = vcn_v1_0_start(adev); - if(!ret) + if (!ret) adev->vcn.cur_state = state; return ret; } @@ -2065,8 +2065,7 @@ static void vcn_v1_0_set_irq_funcs(struct amdgpu_device *adev) adev->vcn.inst->irq.funcs = &vcn_v1_0_irq_funcs; } -const struct amdgpu_ip_block_version vcn_v1_0_ip_block = -{ +const struct amdgpu_ip_block_version vcn_v1_0_ip_block = { .type = AMD_IP_BLOCK_TYPE_VCN, .major = 1, .minor = 0, -- 2.17.1