From patchwork Mon Jul 3 12:08:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todor Tomov X-Patchwork-Id: 106896 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp5690922qge; Mon, 3 Jul 2017 05:08:23 -0700 (PDT) X-Received: by 10.84.130.42 with SMTP id 39mr8614322plc.60.1499083703877; Mon, 03 Jul 2017 05:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499083703; cv=none; d=google.com; s=arc-20160816; b=Y8/t21VPQMM6p2+/Q22y73wI2zNnMVsgy6pyX8DGnd8h7UCw/oOMJ9K9eBYXW/XCU6 BzBtdgMbGR/QhABK7sre7Pgj2AJ++D8FGXjQcS0rcXs7wVVhF2SSYa0J4Fym5WBaeb00 h/PilbYU4fxMQIxwWj0WCuOCJMf4n8sfBkYUuXI+GAhnT+PSxXGN5Y6S+7HeEuQK2YXe wWmyoj6Qp2MisP3zMmp8elVogoCbIUXDK84YJMoixP2PWDLg76GeiPvVqmWViNhxStXJ yWYmT2oMT+D28bs9N77TatSc4qPojJ60xESEYsAuAF4Cl7JHaJLw6fYSpYnbHpExR3L8 fG/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ZUPTi+5LHAUUx2yOtu51RO0dPnnX8zEV1izNappiQnQ=; b=rBjLYwpb/QbAe1o5UGIeMbyV5Fi7zf7WF9TonCNLfBhAanqvmBcDuloRpxH6qIC6XN E5oxzI88DRAHw04pQD67sqPN2Dsioq7fpmOgPMuOv/2JUUML2zBQ/D0w6O278nl+CcIY uq7PPAPqhwTTDXOng7WuiknvlF9yNxyoEGx4U96w3cIpUnaDrNwRkQHbkomyoWRUx3+B rN5ptbCXKx38YE0Mdtf2LLX7vKepQ/1LvGO8Jjn3O3l60YsyfxQD5jglD1vWGW9B+KpT llhwu/ozaXu3qGE4aEtGIZHnT9/rD4KLXrA4p9Xea6GptzRDfRPki49MlpW/o3TsC/Kd qsmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-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 i10si12179557pfd.149.2017.07.03.05.08.23; Mon, 03 Jul 2017 05:08:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-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-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-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 S1752775AbdGCMIW (ORCPT + 4 others); Mon, 3 Jul 2017 08:08:22 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:59779 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750835AbdGCMIV (ORCPT ); Mon, 3 Jul 2017 08:08:21 -0400 Received: from mms-0439.qualcomm.mm-sol.com (unknown [37.157.136.206]) by extserv.mm-sol.com (Postfix) with ESMTPSA id DBB3FCBE2; Mon, 3 Jul 2017 15:08:19 +0300 (EEST) From: Todor Tomov To: mchehab@kernel.org, sakari.ailus@iki.fi Cc: linux-media@vger.kernel.org, Todor Tomov Subject: [PATCH] [media] media: Make parameter of media_entity_remote_pad() const Date: Mon, 3 Jul 2017 15:08:11 +0300 Message-Id: <1499083691-30112-1-git-send-email-todor.tomov@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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 --- drivers/media/media-entity.c | 2 +- include/media/media-entity.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 1.9.1 Acked-by: Sakari Ailus diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c index c68239e..60f9de0 100644 --- a/drivers/media/media-entity.c +++ b/drivers/media/media-entity.c @@ -854,7 +854,7 @@ struct media_link * } 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 b2203ee..bb3a57c 100644 --- a/include/media/media-entity.h +++ b/include/media/media-entity.h @@ -804,7 +804,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