Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6233130rwd; Mon, 19 Jun 2023 04:31:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/PDlJLJjJPYkz28R9UNbxw64VK4O/+t0z1Gudu9bVdWAdKzTRyiDdkOIDu3ROThSbwjS9 X-Received: by 2002:a05:6e02:111:b0:33a:c9dc:9d50 with SMTP id t17-20020a056e02011100b0033ac9dc9d50mr5657776ilm.1.1687174317728; Mon, 19 Jun 2023 04:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687174317; cv=none; d=google.com; s=arc-20160816; b=Jjx6I6euprvpN18Rtse6Dw9NHtKcRGs6nTHUNZvQMxGrW3lRGMjH+9VEF2RRlXcKni eZO4yo88THrWreYD+XtWBzwOPJz2ypnlKeP8ug+9dTkHfZqr9QLjcQa5sQyW5tKqpfff dTh9tfq1byt2IQsbG2rLSSlGGzoD08A+BWzMv26W1i384NSwiL1hOF3Ns2mNDosODeYe JMJffTOqDsKL05wFCSiBgbjeBGRbu5zfZZXuzuBgPev+Bm3oDkig2BxP0dadRpvI+Mw7 QIk+pnbC63mGIf/LP16BI535BtpvUrU8wH+WxDu1WqGrPRUhBw3GpgbKm0TCHlvAY346 Xujg== 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=jNCedfe5Gs6pVhqoMwDYfT+70a/2/m9qT+TaJ6E7FMw=; b=fedqC6zv1wY4s4Wd9EEfbqfdwkzP28SK3Svi99RmTUGi8/9JxfU11kDYbhKiNOxiwE TR5YKBWTmzFohJn4zdQpQUb8eyESD6jBXUSdyD5BAkalPlFKFu24XqZTmLCoFP2adV4D /RBTj8gupXJ5VW2m2/I0FBRk7icOJEiJn42CT9IejXifnBYNBS9YaZwsJgGL/IQ4zHYC OiIGa5WjTUrhVdx9S79YHhf2izvSMRfduDCHC5FZrMEqx5fjxbVMXrHwGxEYePEQDAiH FQYDszqIkpRBZbVM3MrvZPjKg47pvY86nYP9ktohB6ngN21GrEsjREKyRizw6zc2Mryv pzbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=HjZjo4QG; 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 o29-20020a63921d000000b00553cb8ddfdcsi1432514pgd.486.2023.06.19.04.31.43; Mon, 19 Jun 2023 04:31:57 -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=HjZjo4QG; 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 S231365AbjFSL12 (ORCPT + 99 others); Mon, 19 Jun 2023 07:27:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230311AbjFSL11 (ORCPT ); Mon, 19 Jun 2023 07:27:27 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E68B4113; Mon, 19 Jun 2023 04:27:25 -0700 (PDT) Received: from desky.lan (91-154-35-171.elisa-laajakaista.fi [91.154.35.171]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 19B36547; Mon, 19 Jun 2023 13:26:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1687174010; bh=vKoVEh8/BVZ6bIy/hlGDIh7J4gLuFZr4qI4O6tce2iI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HjZjo4QG3nRjoqquQPe5bfdbkA0Xmvxu7yuKfqGthGc3bq6IA8xHcAzqdb9rOWX+e AhmLPyGjc1Tu/c/1dRXsXfp8LzsA7T377g5X2dANXTsCondZTP0Z7g4XK7kQ+WxYjd RZ8vcIA1cloPOrcC34vqnWeB0bWj0YXnNsZAWPrQ= From: Tomi Valkeinen To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Jacopo Mondi Cc: Tomi Valkeinen Subject: [PATCH 2/3] media: subdev: Constify v4l2_subdev_set_routing_with_fmt() param Date: Mon, 19 Jun 2023 14:27:06 +0300 Message-Id: <20230619112707.239565-2-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230619112707.239565-1-tomi.valkeinen@ideasonboard.com> References: <20230619112707.239565-1-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_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 The routing parameter of v4l2_subdev_set_routing_with_fmt() is missing 'const'. Add it. Signed-off-by: Tomi Valkeinen --- 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