From patchwork Mon Jul 17 10:33:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todor Tomov X-Patchwork-Id: 107883 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp4340164qge; Mon, 17 Jul 2017 03:35:02 -0700 (PDT) X-Received: by 10.84.201.6 with SMTP id u6mr29689566pld.251.1500287702164; Mon, 17 Jul 2017 03:35:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500287702; cv=none; d=google.com; s=arc-20160816; b=NxtLswECBsvICFIh6JcCFb4cQ1+AcCopp0bki6LMBiWEklDSEmS+ufmZz/4qnO3pBc JDSS/u9EYqTABbTe10t0FckEQduFpij0vQHJqdS53mroYhjTyz+ViXtZOuB4QK5gcx1b ckiJEpuYqVVhvQo67pYcROINsz0dmqUxd1rC0pndHFrbiKxdLvsnEzfysLHTkEepPAGq sgrNOpDwvWcnqV8IBqBdx34/FKZLOpntdxzYy+jOVybTPd0M7DqMy6agrv4pRWm2tKhT qSf3T/i2d6NrM5QQ7GTw0Va/gLiFWO0gA+FGS4VwI87szqlvkPqYxJsK5wAGk890Mv/z Oy2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=9tHYUP4fLYFnr7UM2nSe7iGRBUXzhBcRJJ7RcBNAs1g=; b=fxg7DNKgQMc4xJFHXVzxkSyVzzj2XsnTcuH7w2mZ5RRUDY95YwQAxSBmYkTsGq2Zuw 8akPkHN3qWmHjH35PQJ4TmSPi1e887EOe3HcLPK+Ac7hsU7osQbdMoBdVtUwx24lCCTO 7X/5zwd/N4PoJ2vVfXdlngTpTaRvsU117EMozs/mHLnatgnNBTYNgU5o6SECAw65pWAb IQocrMYhxEO7U3gGSLI3AOeVZIBDubTBc+mJr4xzgGD0ASab1VQ3pmSnEzmw0cMtmOj6 sbt/znfu7aUHIOui/ooDCqBTsNxGiUBHIr5TBxysnJn0q9wPwD/2GcH8x4JF/XipOzn+ rgjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9si12931161pll.211.2017.07.17.03.35.01; Mon, 17 Jul 2017 03:35:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751312AbdGQKfA (ORCPT + 10 others); Mon, 17 Jul 2017 06:35:00 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:36026 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751294AbdGQKe7 (ORCPT ); Mon, 17 Jul 2017 06:34:59 -0400 Received: from mms-0439.qualcomm.mm-sol.com (unknown [37.157.136.206]) by extserv.mm-sol.com (Postfix) with ESMTPSA id D5438CBB8; Mon, 17 Jul 2017 13:34:57 +0300 (EEST) From: Todor Tomov To: mchehab@kernel.org, hans.verkuil@cisco.com, javier@osg.samsung.com, s.nawrocki@samsung.com, sakari.ailus@iki.fi, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Todor Tomov Subject: [PATCH v3 01/23] [media] media: Make parameter of media_entity_remote_pad() const Date: Mon, 17 Jul 2017 13:33:27 +0300 Message-Id: <1500287629-23703-2-git-send-email-todor.tomov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500287629-23703-1-git-send-email-todor.tomov@linaro.org> References: <1500287629-23703-1-git-send-email-todor.tomov@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The local pad parameter in media_entity_remote_pad() is not modified. Make that explicit by adding a const modifier. Signed-off-by: Todor Tomov Acked-by: Sakari Ailus --- drivers/media/media-entity.c | 2 +- include/media/media-entity.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c index dd0f0ea..2ace041 100644 --- a/drivers/media/media-entity.c +++ b/drivers/media/media-entity.c @@ -917,7 +917,7 @@ media_entity_find_link(struct media_pad *source, struct media_pad *sink) } EXPORT_SYMBOL_GPL(media_entity_find_link); -struct media_pad *media_entity_remote_pad(struct media_pad *pad) +struct media_pad *media_entity_remote_pad(const struct media_pad *pad) { struct media_link *link; diff --git a/include/media/media-entity.h b/include/media/media-entity.h index 754182d..222d379 100644 --- a/include/media/media-entity.h +++ b/include/media/media-entity.h @@ -805,7 +805,7 @@ struct media_link *media_entity_find_link(struct media_pad *source, * Return: returns a pointer to the pad at the remote end of the first found * enabled link, or %NULL if no enabled link has been found. */ -struct media_pad *media_entity_remote_pad(struct media_pad *pad); +struct media_pad *media_entity_remote_pad(const struct media_pad *pad); /** * media_entity_get - Get a reference to the parent module