Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5674392rwp; Mon, 17 Jul 2023 07:53:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlE0cbqZFF7Tmsns5almRx3nP2WJZ3xenas4066TATAqKjOTfInMpbx7WL0fuO31Vz4o0oTr X-Received: by 2002:a05:6a21:99a9:b0:12e:ae87:45d2 with SMTP id ve41-20020a056a2199a900b0012eae8745d2mr11731202pzb.51.1689605603436; Mon, 17 Jul 2023 07:53:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689605603; cv=none; d=google.com; s=arc-20160816; b=mZkfMhh/OgDqYUu3Z+8RcVRfpONRlOJCo5A88IRWEU4xJuvVRDbAC2Z0/QDcN74tgr bb8ZD6Mf60xX5e/A5ImsuwZhC6cYkfJ3g/ey+IusASmZ10YwktWJ+T4cgsAJ/msnLeij SmDp25J3Eb4w5KrMuGXMroOPus8/cMVanRL1o9ovRYSwP7lB+340wK27XXdn+zodUD5z MROqcGRjnECQJru08p7fQ1W4NuTohro3DQOajz6HNNjmCSLFJoPJLhKJtWRCIkm/grt/ 6AwkUqiiChviGY9eNJ2Kg+R6eSEG2XZif+5KAqD1uWivK8fxXSYCXi2VWFe+jsZN/mVB gRDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=sOMBXWVJ5/EN+RPwGhWg92YZz3dwIepdLOPaxkB7Hgs=; fh=+YFXpYQh4CO4HkYg5tZc30j+PrTLdCDkWnutPmzQPqs=; b=zUGyZH4v2hhsUUIPYE4hgov+R5VLHju75OItoA339vjaxW746wgzd9XZm93b43BPuS kHjdbkS0+HmOLxqCXYHjcaFdNe4Q7ZNbmQkM2+C/AeLBf6fNwFTo3lv5u61HSBzEgXDy 1Y39z1RH6DCIMDBo4tj+k9EXhRDt2Jy++yD5cE3L/5kzav/lOTEzQs9KGEG8clM0Vk8m 98guLJN+ThOS+0u8IDt0CAeG0OV6UwQfK+NOTD9/0oRof7yTOgFQdlSvNi0v/mT5FFlH PycMdnE6nY6xYW/bFf8zPIRo1CJCT+nrEoiWdovuXuk7K3TLxFRYkBgdnlQmV0+q3LOe KF2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Wvb5hnEz; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a63f508000000b0055c7d9d7d54si798827pgh.532.2023.07.17.07.53.09; Mon, 17 Jul 2023 07:53:23 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=Wvb5hnEz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232087AbjGQOMm (ORCPT + 99 others); Mon, 17 Jul 2023 10:12:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231486AbjGQOMl (ORCPT ); Mon, 17 Jul 2023 10:12:41 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB2E2F7; Mon, 17 Jul 2023 07:12:37 -0700 (PDT) Received: from ideasonboard.com (mob-5-90-54-150.net.vodafone.it [5.90.54.150]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 182F32F5E; Mon, 17 Jul 2023 16:11:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1689603103; bh=u6odHX0nTVyZUtqhWM4gMwha5SYTPCaQgQvA/jKjeCg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Wvb5hnEzYRJW4AjSyp7cwTL/t/StTxHMLbGH6JTsuNe4zl3ZiqEmonthk1hos7Ygs PRS32OCUfR6TmiGn84br+lOkS9H61Oe4hgXbctgwRM9pNSDwMsYH738oye+MUN2gTJ OkZjNYQpQX2oY3Sf5QpX1V28hQvQDwSYVU2WHlJ8= Date: Mon, 17 Jul 2023 16:12:31 +0200 From: Jacopo Mondi To: Tomi Valkeinen Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Jacopo Mondi Subject: Re: [PATCH 2/3] media: subdev: Constify v4l2_subdev_set_routing_with_fmt() param Message-ID: References: <20230619112707.239565-1-tomi.valkeinen@ideasonboard.com> <20230619112707.239565-2-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230619112707.239565-2-tomi.valkeinen@ideasonboard.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,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 Hi Tomi On Mon, Jun 19, 2023 at 02:27:06PM +0300, Tomi Valkeinen wrote: > The routing parameter of v4l2_subdev_set_routing_with_fmt() is missing > 'const'. Add it. > > Signed-off-by: Tomi Valkeinen Reviewed-by: Jacopo Mondi > --- > drivers/media/v4l2-core/v4l2-subdev.c | 2 +- > include/media/v4l2-subdev.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/media/v4l2-core/v4l2-subdev.c b/drivers/media/v4l2-core/v4l2-subdev.c > index c1ac6d7a63d2..73f716a42569 100644 > --- a/drivers/media/v4l2-core/v4l2-subdev.c > +++ b/drivers/media/v4l2-core/v4l2-subdev.c > @@ -1590,7 +1590,7 @@ EXPORT_SYMBOL_GPL(__v4l2_subdev_next_active_route); > > int v4l2_subdev_set_routing_with_fmt(struct v4l2_subdev *sd, > struct v4l2_subdev_state *state, > - struct v4l2_subdev_krouting *routing, > + const struct v4l2_subdev_krouting *routing, > const struct v4l2_mbus_framefmt *fmt) > { > struct v4l2_subdev_stream_configs *stream_configs; > diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h > index b325df0d54d6..ca0bacb88537 100644 > --- a/include/media/v4l2-subdev.h > +++ b/include/media/v4l2-subdev.h > @@ -1532,7 +1532,7 @@ __v4l2_subdev_next_active_route(const struct v4l2_subdev_krouting *routing, > */ > int v4l2_subdev_set_routing_with_fmt(struct v4l2_subdev *sd, > struct v4l2_subdev_state *state, > - struct v4l2_subdev_krouting *routing, > + const struct v4l2_subdev_krouting *routing, > const struct v4l2_mbus_framefmt *fmt); > > /** > -- > 2.34.1 >