From: Jose Abreu <Jose.Abreu@synopsys.com>
To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Jose Abreu <Jose.Abreu@synopsys.com>,
Carlos Palminha <CARLOS.PALMINHA@synopsys.com>,
Hans Verkuil <hans.verkuil@cisco.com>
Subject: [PATCH v7 1/6] [media] cec.h: Add stub function for cec_register_cec_notifier()
Date: Fri, 7 Jul 2017 12:08:04 +0100 [thread overview]
Message-ID: <cce182bed78d4ba463df1e25cf7060abdf48175e.1499425271.git.joabreu@synopsys.com> (raw)
In-Reply-To: <cover.1499425271.git.joabreu@synopsys.com>
In-Reply-To: <cover.1499425271.git.joabreu@synopsys.com>
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
next prev parent reply other threads:[~2017-07-07 11:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-07 11:08 [PATCH v7 0/6] Synopsys Designware HDMI Video Capture Controller + PHY Jose Abreu
2017-07-07 11:08 ` Jose Abreu [this message]
2017-07-07 11:08 ` [PATCH v7 2/6] [media] cec-notifier.h: Prevent build warnings using forward declaration Jose Abreu
2017-07-07 11:16 ` Hans Verkuil
2017-07-07 11:25 ` Jose Abreu
2017-07-07 11:08 ` [PATCH v7 3/6] dt-bindings: media: Document Synopsys Designware HDMI RX Jose Abreu
2017-07-07 11:08 ` [PATCH v7 4/6] MAINTAINERS: Add entry for Synopsys Designware HDMI drivers Jose Abreu
2017-07-07 11:08 ` [PATCH v7 5/6] [media] platform: Add Synopsys Designware HDMI RX PHY e405 Driver Jose Abreu
2017-07-07 11:08 ` [PATCH v7 6/6] [media] platform: Add Synopsys Designware HDMI RX Controller Driver Jose Abreu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cce182bed78d4ba463df1e25cf7060abdf48175e.1499425271.git.joabreu@synopsys.com \
--to=jose.abreu@synopsys.com \
--cc=CARLOS.PALMINHA@synopsys.com \
--cc=hans.verkuil@cisco.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®