summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-12-16 15:15:18 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-01-11 12:19:24 -0200
commit630c0e80c984c0a9a325430d62770fd49f93f9b9 (patch)
tree252b610d6f90b2ed38d061535f9db34d56e80d7f /include
parent05b3b77cbbb01180b681bc9211f3d471123809ca (diff)
downloadlinux-stable-630c0e80c984c0a9a325430d62770fd49f93f9b9.tar.gz
linux-stable-630c0e80c984c0a9a325430d62770fd49f93f9b9.tar.bz2
linux-stable-630c0e80c984c0a9a325430d62770fd49f93f9b9.zip
[media] media-entity.h: document the remaining functions
There are two ancillary functions that are missing comments. While those are used only internally at media-entity.c, document them, for completeness. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/media/media-entity.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/media/media-entity.h b/include/media/media-entity.h
index 54be1496d542..79dd81fd463e 100644
--- a/include/media/media-entity.h
+++ b/include/media/media-entity.h
@@ -301,11 +301,22 @@ static inline enum media_gobj_type media_type(struct media_gobj *gobj)
return gobj->id >> MEDIA_BITS_PER_ID;
}
+/**
+ * media_id() - return the media object ID
+ *
+ * @gobj: pointer to the media graph object
+ */
static inline u32 media_id(struct media_gobj *gobj)
{
return gobj->id & MEDIA_ID_MASK;
}
+/**
+ * media_gobj_gen_id() - encapsulates type and ID on at the object ID
+ *
+ * @type: object type as define at enum &media_gobj_type.
+ * @local_id: next ID, from struct &media_device.@id.
+ */
static inline u32 media_gobj_gen_id(enum media_gobj_type type, u64 local_id)
{
u32 id;