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: 12896411 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 55E5AC433EF for ; Mon, 27 Jun 2022 08:33:49 +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=Y2f3HZBhXXYCbp eDbx3fSymHNeaMkEi0Ss4AnnBBsInCptnlf/rP72oBr8v7if1h6woEqINb/Oh7BZs/eDB6nCZFGiD 6bEDv5LrFLS9cLJvw5SEJvW8EBGiQWfrOd8A0sbck7E4HagN5mh+qSFEp7YVMirdWFG5mAp6caAqY UZ8gfDd0dUyuhVh1Fz9guPVAYY8NoNT2c/epGd1WL3eQVn6zRELhRTHN7UnOC9Uppw+atwbRct2hy tzFgYf4yufz/0n/+v9fUnSRISxzjAaokztBSEEZpD0hjQu1RPzwp08L/xSAeU6STsmVTjGPHW+M9r bdTteyqsnMMVgaH1Cefg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5kAy-00Gsds-LJ; Mon, 27 Jun 2022 08:32:56 +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 1o5kAY-00GsLI-UA for linux-arm-kernel@lists.infradead.org; Mon, 27 Jun 2022 08:32:32 +0000 Received: from mchehab by www.linuxtv.org with local (Exim 4.92) (envelope-from ) id 1o5kAR-003xKC-Uy; Mon, 27 Jun 2022 08:32:23 +0000 From: Mauro Carvalho Chehab Date: Mon, 27 Jun 2022 08:15:37 +0000 Subject: [git:media_stage/master] media: stm32: dcmi: Drop always NULL sd_state from dcmi_pipeline_s_fmt() To: linuxtv-commits@linuxtv.org Cc: Alexandre Torgue , Laurent Pinchart , Hans Verkuil , Hugues FRUCHET , Philippe CORNU , linux-stm32@st-md-mailman.stormreply.com, Marek Vasut , Amelie DELAUNAY , Alain Volmat , linux-arm-kernel@lists.infradead.org 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-20220627_013231_006560_B536F6D8 X-CRM114-Status: GOOD ( 12.42 ) 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;