Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1683125
| From | Jose Abreu <Jose.Abreu@synopsys.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v7 1/6] [media] cec.h: Add stub function for cec_register_cec_notifier() |
| Date | 2017-07-07 13:10 +0200 |
| Message-ID | <u0zj3-3e7-1@gated-at.bofh.it> (permalink) |
| References | <u0zj3-3e7-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/media/cec.h b/include/media/cec.h
index 56643b2..b35f154 100644
--- a/include/media/cec.h
+++ b/include/media/cec.h
@@ -365,6 +365,13 @@ static inline int cec_phys_addr_validate(u16 phys_addr, u16 *parent, u16 *port)
return 0;
}
+#ifndef CONFIG_CEC_NOTIFIER
+static inline void cec_register_cec_notifier(struct cec_adapter *adap,
+ struct cec_notifier *notifier)
+{
+}
+#endif
+
#endif
/**
--
1.9.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH v7 1/6] [media] cec.h: Add stub function for cec_register_cec_notifier() Jose Abreu <Jose.Abreu@synopsys.com> - 2017-07-07 13:10 +0200
csiph-web