From patchwork Mon Jun 27 08:15:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 12906288 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 55FB4C43334 for ; Tue, 5 Jul 2022 09:58:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Cc:To: Subject:Date:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=PIshFhlMFWPq2KlwlPg5wHtFtAEwOWCfiDuHeeNtFG0=; b=xAl4FrWIe08nu8 AEj6thXEtYBxGbgDs1Mj4P46jkk3pEG7XAZgzaoPa2f8B+GBI2E4WvyGwDAUZhPQbd2i7aWsgyfbE 37BEnYV6Np/1yKe/9Qmr5DDvAzk3tqxTrG7ownopi1BQTKsnMHY1K+g1kowfD0z5VhtzkzGM8lTnR LeSG1pwTbIfxh4TkFrwTePpGw8ULwWH7PrwOuF9xgjXmrp08X4gpc9mVp0a/opAtLFIin03HjdSzX WXAdpi7zMH5nXwjDcPoKjOn0G/1hwSJnyv0ILitKatywkxlzGDVo35LuCsw8ezCp6PgVF4vCYr4eO W277s2x5BKAKCkoBtHMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8fIi-00H0fw-CG; Tue, 05 Jul 2022 09:57:00 +0000 Received: from www.linuxtv.org ([130.149.80.248]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8fHv-00Gzz8-OE for linux-arm-kernel@lists.infradead.org; Tue, 05 Jul 2022 09:56:13 +0000 Received: from mchehab by www.linuxtv.org with local (Exim 4.92) (envelope-from ) id 1o8fHn-00FTU1-4C; Tue, 05 Jul 2022 09:56:03 +0000 From: Mauro Carvalho Chehab Date: Mon, 27 Jun 2022 08:15:37 +0000 Subject: [git:media_tree/master] media: stm32: dcmi: Drop always NULL sd_state from dcmi_pipeline_s_fmt() To: linuxtv-commits@linuxtv.org Cc: Hans Verkuil , Amelie DELAUNAY , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Alain Volmat , Laurent Pinchart , Marek Vasut , Hugues FRUCHET , Philippe CORNU , Alexandre Torgue Mail-followup-to: linux-media@vger.kernel.org Forward-to: linux-media@vger.kernel.org Message-Id: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220705_025611_889841_48ED2B59 X-CRM114-Status: GOOD ( 12.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This is an automatic generated email to let you know that the following patch were queued: Subject: media: stm32: dcmi: Drop always NULL sd_state from dcmi_pipeline_s_fmt() Author: Marek Vasut Date: Sat Jun 18 23:23:54 2022 +0100 The second argument is always NULL, stop passing it to the function. Signed-off-by: Marek Vasut Cc: Alain Volmat Cc: Alexandre Torgue Cc: Amelie DELAUNAY Cc: Hugues FRUCHET Cc: Laurent Pinchart Cc: Philippe CORNU Cc: linux-stm32@st-md-mailman.stormreply.com Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab drivers/media/platform/st/stm32/stm32-dcmi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/st/stm32/stm32-dcmi.c b/drivers/media/platform/st/stm32/stm32-dcmi.c index 5f08ba47ea96..c604d672c215 100644 --- a/drivers/media/platform/st/stm32/stm32-dcmi.c +++ b/drivers/media/platform/st/stm32/stm32-dcmi.c @@ -622,7 +622,6 @@ static struct media_entity *dcmi_find_source(struct stm32_dcmi *dcmi) } static int dcmi_pipeline_s_fmt(struct stm32_dcmi *dcmi, - struct v4l2_subdev_state *sd_state, struct v4l2_subdev_format *format) { struct media_entity *entity = &dcmi->source->entity; @@ -664,7 +663,7 @@ static int dcmi_pipeline_s_fmt(struct stm32_dcmi *dcmi, format->format.width, format->format.height); fmt.pad = pad->index; - ret = v4l2_subdev_call(subdev, pad, set_fmt, sd_state, &fmt); + ret = v4l2_subdev_call(subdev, pad, set_fmt, NULL, &fmt); if (ret < 0) { dev_err(dcmi->dev, "%s: Failed to set format 0x%x %ux%u on \"%s\":%d pad (%d)\n", __func__, format->format.code, @@ -1115,7 +1114,7 @@ static int dcmi_set_fmt(struct stm32_dcmi *dcmi, struct v4l2_format *f) mf->width = sd_framesize.width; mf->height = sd_framesize.height; - ret = dcmi_pipeline_s_fmt(dcmi, NULL, &format); + ret = dcmi_pipeline_s_fmt(dcmi, &format); if (ret < 0) return ret;