Skip to contentSkip to conversation

cec.h: Add stub function for cec_register_cec_notifier()

PATCH New Jose Abreu 1 participant 1 message Jul 7, 2017 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jose Abreu

author
#1 lore raw

PATCH 1/5 cec.h: Add stub function for cec_register_cec_notifier()

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.

Cc Carlos Palminha <[email protected]>
Cc Hans Verkuil <[email protected]>
---
 include/media/cec.h | 8 ++++++++
 1 file changed, 8 insertions(+)
include/media/cec.h +8 -0
index 56643b2..8357f60 100644
@@ -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
 
 /**
Signature · 1 line
1.9.1