Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1688907
| From | Todor Tomov <todor.tomov@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v3 01/23] [media] media: Make parameter of media_entity_remote_pad() const |
| Date | 2017-07-17 12:50 +0200 |
| Message-ID | <u4bLe-3Tv-51@gated-at.bofh.it> (permalink) |
| References | <u4bBw-3PU-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 <todor.tomov@linaro.org>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
drivers/media/media-entity.c | 2 +-
include/media/media-entity.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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
--
2.7.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3 00/23] Qualcomm 8x16 Camera Subsystem driver Todor Tomov <todor.tomov@linaro.org> - 2017-07-17 12:50 +0200 [PATCH v3 09/23] media: camss: Add ISPIF files Todor Tomov <todor.tomov@linaro.org> - 2017-07-17 12:50 +0200 [PATCH v3 01/23] [media] media: Make parameter of media_entity_remote_pad() const Todor Tomov <todor.tomov@linaro.org> - 2017-07-17 12:50 +0200 [PATCH v3 05/23] MAINTAINERS: Add Qualcomm Camera subsystem driver Todor Tomov <todor.tomov@linaro.org> - 2017-07-17 12:50 +0200 [PATCH v3 06/23] doc: media/v4l-drivers: Add Qualcomm Camera Subsystem driver document Todor Tomov <todor.tomov@linaro.org> - 2017-07-17 12:50 +0200 [PATCH v3 03/23] v4l: Add packed Bayer raw12 pixel formats Todor Tomov <todor.tomov@linaro.org> - 2017-07-17 12:50 +0200 [PATCH v3 08/23] media: camss: Add CSID files Todor Tomov <todor.tomov@linaro.org> - 2017-07-17 12:50 +0200 [PATCH v3 04/23] dt-bindings: media: Binding document for Qualcomm Camera subsystem driver Todor Tomov <todor.tomov@linaro.org> - 2017-07-17 12:50 +0200 [PATCH v3 11/23] media: camss: Add files which handle the video device nodes Todor Tomov <todor.tomov@linaro.org> - 2017-07-17 12:50 +0200
csiph-web