summaryrefslogtreecommitdiffstats
path: root/include/media/cec.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-08-04 06:41:51 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-09 09:36:54 -0400
commitee0c503eacfb97e1d443baf5a03939201d0244f5 (patch)
tree62077826572742a6faa46c44dffed4b1cf27869f /include/media/cec.h
parent79bcd34ccfe009ad21d16100ae2aef9b378a512d (diff)
downloadblackbird-obmc-linux-ee0c503eacfb97e1d443baf5a03939201d0244f5.tar.gz
blackbird-obmc-linux-ee0c503eacfb97e1d443baf5a03939201d0244f5.zip
media: media/cec.h: add CEC_CAP_DEFAULTS
The CEC_CAP_LOG_ADDRS, CEC_CAP_TRANSMIT, CEC_CAP_PASSTHROUGH and CEC_CAP_RC capabilities are normally always present. Add a CEC_CAP_DEFAULTS define that ORs these four caps to simplify drivers. 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.h')
-rw-r--r--include/media/cec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/cec.h b/include/media/cec.h
index 224a6e225c52..1bec7bde4792 100644
--- a/include/media/cec.h
+++ b/include/media/cec.h
@@ -31,6 +31,9 @@
#include <media/rc-core.h>
#include <media/cec-notifier.h>
+#define CEC_CAP_DEFAULTS (CEC_CAP_LOG_ADDRS | CEC_CAP_TRANSMIT | \
+ CEC_CAP_PASSTHROUGH | CEC_CAP_RC)
+
/**
* struct cec_devnode - cec device node
* @dev: cec device
OpenPOWER on IntegriCloud