summaryrefslogtreecommitdiffstats
path: root/include/media/cec-notifier.h
diff options
context:
space:
mode:
authorHans Verkuil2017-07-13 09:07:23 +0200
committerMauro Carvalho Chehab2017-07-18 18:00:01 +0200
commit5150418593015d280dab321da1fe3cea4ed3b693 (patch)
treeec12fb18de4ac93ddc609b311a648885c22fed91 /include/media/cec-notifier.h
parentmedia: pulse8-cec.rst: add documentation for the pulse8-cec driver (diff)
downloadkernel-qcow2-linux-5150418593015d280dab321da1fe3cea4ed3b693.tar.gz
kernel-qcow2-linux-5150418593015d280dab321da1fe3cea4ed3b693.tar.xz
kernel-qcow2-linux-5150418593015d280dab321da1fe3cea4ed3b693.zip
media: cec: move cec_register_cec_notifier to cec-notifier.h
The cec_register_cec_notifier function was in media/cec.h, but it has to be in cec-notifier.h. While we are at it, also document it and add a stub function for when the notifier is disabled or the CEC core code is unreachable. Based on an earlier patch from Jose Abreu <Jose.Abreu@synopsys.com>. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/media/cec-notifier.h')
-rw-r--r--include/media/cec-notifier.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/media/cec-notifier.h b/include/media/cec-notifier.h
index 298f996969df..73bc98b90afc 100644
--- a/include/media/cec-notifier.h
+++ b/include/media/cec-notifier.h
@@ -86,6 +86,14 @@ void cec_notifier_register(struct cec_notifier *n,
*/
void cec_notifier_unregister(struct cec_notifier *n);
+/**
+ * cec_register_cec_notifier - register the notifier with the cec adapter.
+ * @adap: the CEC adapter
+ * @notifier: the CEC notifier
+ */
+void cec_register_cec_notifier(struct cec_adapter *adap,
+ struct cec_notifier *notifier);
+
#else
static inline struct cec_notifier *cec_notifier_get(struct device *dev)
{
@@ -116,6 +124,10 @@ static inline void cec_notifier_unregister(struct cec_notifier *n)
{
}
+static inline void cec_register_cec_notifier(struct cec_adapter *adap,
+ struct cec_notifier *notifier)
+{
+}
#endif
#endif