linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v7.1 1/5] [media] cec.h: Add stub function for cec_register_cec_notifier()
       [not found] <cover.1499427365.git.joabreu@synopsys.com>
@ 2017-07-07 11:37 ` Jose Abreu
  0 siblings, 0 replies; only message in thread
From: Jose Abreu @ 2017-07-07 11:37 UTC (permalink / raw)
  To: linux-media, linux-kernel; +Cc: Jose Abreu, Carlos Palminha, Hans Verkuil

Add a new stub function for cec_register_cec_notifier() so that
we can still call this function when CONFIG_CEC_NOTIFIER and
CONFIG_CEC_CORE are not set.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: Carlos Palminha <palminha@synopsys.com>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
---
 include/media/cec.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/media/cec.h b/include/media/cec.h
index 56643b2..8357f60 100644
--- a/include/media/cec.h
+++ b/include/media/cec.h
@@ -365,6 +365,14 @@ static inline int cec_phys_addr_validate(u16 phys_addr, u16 *parent, u16 *port)
 	return 0;
 }
 
+#ifndef CONFIG_CEC_NOTIFIER
+struct cec_notifier;
+static inline void cec_register_cec_notifier(struct cec_adapter *adap,
+					     struct cec_notifier *notifier)
+{
+}
+#endif
+
 #endif
 
 /**
-- 
1.9.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-07 11:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <cover.1499427365.git.joabreu@synopsys.com>
2017-07-07 11:37 ` [PATCH v7.1 1/5] [media] cec.h: Add stub function for cec_register_cec_notifier() Jose Abreu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).