media: media/cec.h: add CEC_CAP_DEFAULTS
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 4 Aug 2017 10:41:51 +0000 (06:41 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 9 Aug 2017 13:36:54 +0000 (09:36 -0400)
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>
include/media/cec.h

index 224a6e225c52a654ff7ffb36482d4010cbdf4fc6..1bec7bde4792f013c308851e099c09fc8350a625 100644 (file)
@@ -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