Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1373124rdd; Wed, 10 Jan 2024 18:26:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFJi8jKcSHihxt0wqrSwhEYjtxAqyIjjWcPXLURWv29PpOnUHIz435Ndu4/vQNRo26sq3+6 X-Received: by 2002:a05:620a:1377:b0:783:4d7:7111 with SMTP id d23-20020a05620a137700b0078304d77111mr553240qkl.101.1704939978496; Wed, 10 Jan 2024 18:26:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704939978; cv=none; d=google.com; s=arc-20160816; b=sdg8IxgJsk8riVaKvcABrEVRXZXGTOM6pbd2zxf8iK8InoNNNnBvb/3AD8CTB3aAh9 B9vrYmqf3CKeOCa6c5sn3kNh8SBTJren6X8TyQAs2XrQFL1IF5wN6rcgVMCiWJQmybKC XMi3gQdYkwSx9LcND7luEGIwwmVvc4WmfCztkPQ1qBNFIpAUjQ2AaYsjOcqRQYikkrqu L10BQ2hGtqndwYTHv9AIsGJp5gL+LB1J4aKZp7QjlR5olo4u/kqfSmq6UA9r37lTFZYt KBgpffogyTOJOYJ7k3lgnB/NPnWht8KGu1HRByQaEJj10C+1E8rKYJvOVelzJeG1/9bS WdQA== 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=nbbVvUF/7Gsgkfq6Xu1euEZczf3yX7tnXLat+g/jEbg=; fh=ZqZn/20FzsbymjeUPtGyGFg9yxTeXX+K0AgYp8eBNOs=; b=SbDhkqmz9EhHlyYYlTaVO+iCwlWCQFh67dkzM42Qn1xhOZukgtQGMLgXIr5lSVgVuQ 7hl4x0QuJg9kwZ0J0f1ng9LY/GvfV8Evsdkis1bLSBZVRurSMBeNck2D/j3fithBfATD fQRDrSmJDYm5VuQ2lN6qej0IzBO8BFZF6O0LYxI9vTWlT1G/Hnu9zYjz+plBZ+Lk4E4B crenM1Z4MCrj25/rv/BIbDTB8adw1PVR294hE4ysJ/dEtro+4G7LmWZsSJASzooJW3oR z/ZBzdIhn5gsl0iVHe3pwqk00Dg3jTHN/VtDBVYKrC4nltCXpoN4iWoINEWxdznYVIX4 0j0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=V487I366; spf=pass (google.com: domain of linux-kernel+bounces-22976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.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 s15-20020a05620a080f00b0078322d76dd0si73088qks.481.2024.01.10.18.26.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 18:26:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22976-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=@126.com header.s=s110527 header.b=V487I366; spf=pass (google.com: domain of linux-kernel+bounces-22976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.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 40B461C21C78 for ; Thu, 11 Jan 2024 02:26:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E66B933ED; Thu, 11 Jan 2024 02:24:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b="V487I366" Received: from m16.mail.126.com (m16.mail.126.com [220.197.31.8]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A20C256D for ; Thu, 11 Jan 2024 02:24:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=126.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=nbbVvUF/7Gsgkfq6Xu 1euEZczf3yX7tnXLat+g/jEbg=; b=V487I3661EHGOrtHEJZmbZzrAKmx1eYtqw bjlRIlNd35Bwg8dtgjQt6rb9z+QAzxA3xoPQdMRNsGglKIjWrlOf3Nxs0/+sITr+ 9nwhILbhYRLul9cXM8NWSs8DGCTUedXsa93jyOR6aPlnhSOSlo0UtgWQgM+5Bi8Q C6BGBvTzc= Received: from localhost.localdomain (unknown [182.148.14.173]) by gzga-smtp-mta-g1-5 (Coremail) with SMTP id _____wD331ppUZ9lMjQtAA--.21367S2; Thu, 11 Jan 2024 10:24:41 +0800 (CST) From: chenxuebing To: alexander.deucher@amd.com, christian.koenig@amd.com, airlied@gmail.com, daniel@ffwll.ch, Xinhui.Pan@amd.com Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, chenxuebing Subject: [PATCH] drm/amdgpu: Clean up errors in jpeg_v2_5.c Date: Thu, 11 Jan 2024 02:24:37 +0000 Message-Id: <20240111022437.6239-1-chenxb_99091@126.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID:_____wD331ppUZ9lMjQtAA--.21367S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7urWDWry7JF13Jry3Ary3twb_yoW8WFWUpa 93AFy5urs5CFnFv3ZrX3WDZFnYkw13u3W5CrWUJw1fu3W5Jr98X3s7tFy5Z340qFWxCrWI vr48t3y7X3WIvF7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0zRijjPUUUUU= X-CM-SenderInfo: hfkh05lebzmiizr6ij2wof0z/1tbiHAxixWV2zz6PUgAAsI Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Fix the following errors reported by checkpatch: ERROR: space required before the open parenthesis '(' ERROR: that open brace { should be on the previous line Signed-off-by: chenxuebing --- drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c index e67a337457ed..99cd49ee8ef6 100644 --- a/drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c +++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c @@ -551,7 +551,7 @@ static int jpeg_v2_5_set_powergating_state(void *handle, struct amdgpu_device *adev = (struct amdgpu_device *)handle; int ret; - if(state == adev->jpeg.cur_state) + if (state == adev->jpeg.cur_state) return 0; if (state == AMD_PG_STATE_GATE) @@ -559,7 +559,7 @@ static int jpeg_v2_5_set_powergating_state(void *handle, else ret = jpeg_v2_5_start(adev); - if(!ret) + if (!ret) adev->jpeg.cur_state = state; return ret; @@ -754,8 +754,7 @@ static void jpeg_v2_5_set_irq_funcs(struct amdgpu_device *adev) } } -const struct amdgpu_ip_block_version jpeg_v2_5_ip_block = -{ +const struct amdgpu_ip_block_version jpeg_v2_5_ip_block = { .type = AMD_IP_BLOCK_TYPE_JPEG, .major = 2, .minor = 5, @@ -763,8 +762,7 @@ const struct amdgpu_ip_block_version jpeg_v2_5_ip_block = .funcs = &jpeg_v2_5_ip_funcs, }; -const struct amdgpu_ip_block_version jpeg_v2_6_ip_block = -{ +const struct amdgpu_ip_block_version jpeg_v2_6_ip_block = { .type = AMD_IP_BLOCK_TYPE_JPEG, .major = 2, .minor = 6, -- 2.17.1