Commit 6eae60c5 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] cec-core.rst: document the new cec_get_drvdata() helper

Document the new cec_get_drvdata() helper function.
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 055075a3
...@@ -48,6 +48,7 @@ ops: ...@@ -48,6 +48,7 @@ ops:
priv: priv:
will be stored in adap->priv and can be used by the adapter ops. 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: name:
the name of the CEC adapter. Note: this name will be copied. the name of the CEC adapter. Note: this name will be copied.
...@@ -62,6 +63,10 @@ available_las: ...@@ -62,6 +63,10 @@ available_las:
the number of simultaneous logical addresses that this the number of simultaneous logical addresses that this
adapter can handle. Must be 1 <= available_las <= CEC_MAX_LOG_ADDRS. 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 To register the /dev/cecX device node and the remote control device (if
CEC_CAP_RC is set) you call: CEC_CAP_RC is set) you call:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment