mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[media] cec-core.rst: document the new cec_get_drvdata() helper
Document the new cec_get_drvdata() helper function. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
055075a3e8
commit
6eae60c5a0
1 changed files with 5 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue