Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6487949rwd; Mon, 19 Jun 2023 08:01:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6g4jBR4r1rb+MIhuhbRqVrYcrLofGnCx2SMzlz5PazypPP4LKbxXq/CZomjqR8jGUpKeUR X-Received: by 2002:a05:6870:d450:b0:19f:aee0:e169 with SMTP id j16-20020a056870d45000b0019faee0e169mr6400359oag.30.1687186866135; Mon, 19 Jun 2023 08:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687186866; cv=none; d=google.com; s=arc-20160816; b=zmmF6iU+k6/4tR8DbxfIjqAGhxpZrb+D2l4wSVokAkxxP80gQvAnzGjlS4q4igDOvX STVgSsMGw6/j1evNBYHKcru5qX+NUSIpOHE6KRVW8Y3iCfDWIIB+Nn9SOfWmgRPDBO1K vJwN6XxTubtNEhSTF7xnMIbBAR4fDM4zmGayAZw1I5HANFubeipusNHzwYVouXwC1POr 8c7AmOQ4EHVlanasK6z4M2vyxkAyRLoTIUkYSZHv+MwVo2/5g9swgSpN6m6guHuHMWlf 93y6i9IVXAbAoUmlYHweE0yqn4toQmPSpQOL4k3NUwmb9B7BKLXTSPS8m6VxZTBjGRDb W16Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=V4j8XeCmlBdA/M9vVD5jrzwbNVtdocbWiM5ysao7t4g=; b=RWmtO1MbVXmNxQt8pVUyYlF7GOVd0m7PM4EdoZS2/SmAKJTRWwBuSdHOd1sflbFhKH JejQkXaC7Va1HlXia+xxux7hDs2e8h6NB55w2COty7BSh6VErbssutiovGhPllbVXdaB ic3rtkbXpAOXpFaA88zhtyo+ziKNLIkMPEiyf+8XQ1ORA+k5PhyD7TGkpMyA1jTtJxGN itxJJBMuhW0Wox2/6m1kGXRLmmS6sOPOjjDbdOS+JzyjOYSI0t3vlCBds1/87YYgLfR+ QVMr7zvQiLaf8ax2P5XzNT6itEngQETkUwBp7NxxYqGg481hggqouccx/M7VGbR7Z632 xZ6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=B9ORFWW4; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f16-20020a635110000000b0053f8da90675si3247921pgb.598.2023.06.19.08.00.39; Mon, 19 Jun 2023 08:01:06 -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; dkim=pass header.i=@collabora.com header.s=mail header.b=B9ORFWW4; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231853AbjFSOnN (ORCPT + 99 others); Mon, 19 Jun 2023 10:43:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231912AbjFSOnJ (ORCPT ); Mon, 19 Jun 2023 10:43:09 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D1A390; Mon, 19 Jun 2023 07:43:08 -0700 (PDT) Received: from nicolas-tpx395.localdomain (unknown [IPv6:2606:6d00:15:c623::7a9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: nicolas) by madras.collabora.co.uk (Postfix) with ESMTPSA id 5D38F66003B0; Mon, 19 Jun 2023 15:43:05 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1687185786; bh=NfyaBn5JAp0LRehVuBFB0gPIXq905Ui+DV13yqPSrqs=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=B9ORFWW4fvQrn/ukiy/D9J2R4/DACD7XnYVyUFccjvabpmC9fO/o+Zbnsclx4XKoQ CSNnUG7DWJSc+XljNKYBoV2dNjfMIbhfEnrwR1LoPFlkR/vQPKfGeZ/ejHcv6HIcIE 8YUA+6K9MW8kLopMoFdY1AHzfvszraoaqI6qiN/b6EpdWhg/nOj6RHiSHaLBd+SzWL zjGULMzkmst3l+Wru4+aINsnQ9LcPOpBfQh88kPGeaUWXs2V5pyY8hRW92SkSDBcTs HdiXcqxTwZKBpFRVQbgMEFCmw2/2GsAtX/ZVCWULZ1oEPAN0FRWC2NdLTr/jLDl1Qy sxqy+c1Uyz6qw== Message-ID: <2de61884821d707ce1372fffdbeccc20c28e4d03.camel@collabora.com> Subject: Re: [PATCH v3,01/11] media: mediatek: vcodec: remove unused parameter From: Nicolas Dufresne To: Yunfei Dong , =?ISO-8859-1?Q?N=EDcolas?= "F . R . A . Prado" , Hans Verkuil , AngeloGioacchino Del Regno , Benjamin Gaignard , Nathan Hebert Cc: Chen-Yu Tsai , Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , Steve Cho , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com Date: Mon, 19 Jun 2023 10:42:57 -0400 In-Reply-To: <20230617103255.20239-2-yunfei.dong@mediatek.com> References: <20230617103255.20239-1-yunfei.dong@mediatek.com> <20230617103255.20239-2-yunfei.dong@mediatek.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.3 (3.48.3-1.fc38) MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Le samedi 17 juin 2023 =C3=A0 18:32 +0800, Yunfei Dong a =C3=A9crit=C2=A0: > remove unused parameter in struct mtk_vcodec_dev. >=20 > Signed-off-by: Yunfei Dong Reviewed-by: Nicolas Dufresne > --- > drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c | 2 -- > drivers/media/platform/mediatek/vcodec/mtk_vcodec_drv.h | 6 ------ > drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.c | 2 -- > 3 files changed, 10 deletions(-) >=20 > diff --git a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c = b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c > index d41f2121b94f..03721eda2769 100644 > --- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c > +++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c > @@ -336,8 +336,6 @@ static int mtk_vcodec_probe(struct platform_device *p= dev) > goto err_core_workq; > } > =20 > - init_waitqueue_head(&dev->queue); > - > vfd_dec =3D video_device_alloc(); > if (!vfd_dec) { > mtk_v4l2_err("Failed to allocate video device"); > diff --git a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_drv.h b/dr= ivers/media/platform/mediatek/vcodec/mtk_vcodec_drv.h > index f17d67e781c9..e3230a4d7b8e 100644 > --- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_drv.h > +++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_drv.h > @@ -448,10 +448,7 @@ struct mtk_vcodec_enc_pdata { > * @decode_workqueue: decode work queue > * @encode_workqueue: encode work queue > * > - * @int_cond: used to identify interrupt condition happen > - * @int_type: used to identify what kind of interrupt condition happen > * @dev_mutex: video_device lock > - * @queue: waitqueue for waiting for completion of device commands > * > * @dec_irq: decoder irq resource > * @enc_irq: h264 encoder irq resource > @@ -496,10 +493,7 @@ struct mtk_vcodec_dev { > =20 > struct workqueue_struct *decode_workqueue; > struct workqueue_struct *encode_workqueue; > - int int_cond; > - int int_type; > struct mutex dev_mutex; > - wait_queue_head_t queue; > =20 > int dec_irq; > int enc_irq; > diff --git a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.c = b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.c > index 5df0a22ff3b5..a56652e476c2 100644 > --- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.c > +++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.c > @@ -311,8 +311,6 @@ static int mtk_vcodec_probe(struct platform_device *p= dev) > goto err_res; > } > =20 > - init_waitqueue_head(&dev->queue); > - > /* allocate video device for encoder and register it */ > vfd_enc =3D video_device_alloc(); > if (!vfd_enc) {