Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp114350rwd; Wed, 31 May 2023 20:05:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6iXcUN1dHkXpViIrcyJ4aANX14Xee3hHz15DW4pcZQXHKs76kYOClaJjcHZlpcSdeWgO0R X-Received: by 2002:a05:6214:e4b:b0:615:a18b:d5af with SMTP id o11-20020a0562140e4b00b00615a18bd5afmr8291546qvc.35.1685588707833; Wed, 31 May 2023 20:05:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685588707; cv=none; d=google.com; s=arc-20160816; b=l2sxaGb4Jyz+PGXInZ4OCY+ew2ik9Iu/moOhR36ZmfaJNmtTjWopT5PLJwvx/JPYKn B94mw7lkEg98ElvEAHa8V8yqogOhu1BK1XgeO6o7Oh4s6XJydH2YRtmtEcXgH3gJNKra vY4Dys3JDHu7Gs9kMccKMdSdS4QzGuVNcZrFvYfcsdxGckXMoVFGIx/Vc8KC6vUboeSu B60vORkPMM1yI2WP6aFUZpUogoHTS0getcaLREJ3G9ZssqthkLP+0cG99LdXOY1ydh91 OQw+k7Jzld3bxOHam4PyaUntIFx0BbXMRoFORkZZPIBu5g35ghzXOzdEcNfzUV5IuWPV qNDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BETkkIZySjhEOf7Tdtg9qVoyKMNyel8xSjuNwP+/t0k=; b=RywRvgEz2e0uMsNQ53Ad0xFJ9aRm45/njl+YLfDY5KE775oSNbuG1X1+XNTfW1HPIm FM1t5xuBDTUW/m/Ht0QbP6M78L9flb/WybG35T+GS4S+o8bvbnX5uE5dEQYtvEGNzidu vrEl6aHt3L0IwoEvRvvoXWkI9rA5c1dpklhZ1ecBa5+OZH0CavAvX+bjKlPS7CVkSulZ dVuVU4fbV9ONO7AJE3A4vkDiTuj45C5bMZVexWntrxs5h2mlE5b5dUIUpX1mUkzP+rH9 FE9TyUx49+GYb7YCxziXngWV2HtxyUfVxiKs/N1cY2AMCPbwXY7ULkRv5oO5O8VeOQyH cRzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=CxB77BRf; 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=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n10-20020a170902d2ca00b001ab1ba2572csi2155745plc.240.2023.05.31.20.04.55; Wed, 31 May 2023 20:05: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; dkim=pass header.i=@mediatek.com header.s=dk header.b=CxB77BRf; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231327AbjFADDq (ORCPT + 99 others); Wed, 31 May 2023 23:03:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231398AbjFADDU (ORCPT ); Wed, 31 May 2023 23:03:20 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 845CF1A8; Wed, 31 May 2023 20:03:05 -0700 (PDT) X-UUID: d1a035c2002811eeb20a276fd37b9834-20230601 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=BETkkIZySjhEOf7Tdtg9qVoyKMNyel8xSjuNwP+/t0k=; b=CxB77BRfoB4LCT/XplwD/1pudNgR8hqvKsup0hF53+2vR6w6X/Ars0GcoSWVxUbABUf3xDPLw5xbvqw0YZgm0w09nR0yZPqlPYRhFOpLR9hSRNkHHPfJuhF6UtvDfhGJwuMiwSgwZ7dClsES+Wn68TK8pFYJ7HbL/8AVasFjynM=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.25,REQID:4fe05f72-5467-4ce3-b994-1e035416400d,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:d5b0ae3,CLOUDID:ad72333d-7aa7-41f3-a6bd-0433bee822f3,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-UUID: d1a035c2002811eeb20a276fd37b9834-20230601 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 37087001; Thu, 01 Jun 2023 11:03:01 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 1 Jun 2023 11:02:59 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 1 Jun 2023 11:02:58 +0800 From: Yunfei Dong To: Chen-Yu Tsai , Nicolas Dufresne , Hans Verkuil , AngeloGioacchino Del Regno , Benjamin Gaignard , =?UTF-8?q?N=C3=ADcolas=20F=20=2E=20R=20=2E=20A=20=2E=20Prado?= , Nathan Hebert CC: Yunfei Dong , Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , Steve Cho , , , , , , Subject: [PATCH 1/8] media: mediatek: vcodec: remove unused parameter Date: Thu, 1 Jun 2023 11:02:49 +0800 Message-ID: <20230601030256.29875-2-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230601030256.29875-1-yunfei.dong@mediatek.com> References: <20230601030256.29875-1-yunfei.dong@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=no 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 remove unused parameter in struct mtk_vcodec_dev. Signed-off-by: Yunfei Dong --- 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(-) 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 *pdev) goto err_core_workq; } - init_waitqueue_head(&dev->queue); - vfd_dec = 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/drivers/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 { 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; 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 *pdev) goto err_res; } - init_waitqueue_head(&dev->queue); - /* allocate video device for encoder and register it */ vfd_enc = video_device_alloc(); if (!vfd_enc) { -- 2.25.1