summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2017-03-27 12:53:00 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-04-05 21:21:23 +0300
commit6eae60c5a0f05e0a9be01d6520d6e3017edc9c0d (patch)
treeb1eaeb3e80d80081b5e3e7fdbbedf2e7980677bc /Documentation
parent055075a3e8b8992f86707d3d7d20b857e71d205d (diff)
downloadlinux-6eae60c5a0f05e0a9be01d6520d6e3017edc9c0d.tar.xz
[media] cec-core.rst: document the new cec_get_drvdata() helper
Document the new cec_get_drvdata() helper function. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/media/kapi/cec-core.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/media/kapi/cec-core.rst b/Documentation/media/kapi/cec-core.rst
index 79db7747ff40..7a04c5386dc8 100644
--- a/Documentation/media/kapi/cec-core.rst
+++ b/Documentation/media/kapi/cec-core.rst
@@ -48,6 +48,7 @@ ops:
priv:
will be stored in adap->priv and can be used by the adapter ops.
+ Use cec_get_drvdata(adap) to get the priv pointer.
name:
the name of the CEC adapter. Note: this name will be copied.
@@ -62,6 +63,10 @@ available_las:
the number of simultaneous logical addresses that this
adapter can handle. Must be 1 <= available_las <= CEC_MAX_LOG_ADDRS.
+To obtain the priv pointer use this helper function:
+
+.. c:function::
+ void *cec_get_drvdata(const struct cec_adapter *adap);
To register the /dev/cecX device node and the remote control device (if
CEC_CAP_RC is set) you call: