diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2017-08-04 06:41:51 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-09 09:36:54 -0400 |
commit | ee0c503eacfb97e1d443baf5a03939201d0244f5 (patch) | |
tree | 62077826572742a6faa46c44dffed4b1cf27869f /include/media/cec.h | |
parent | 79bcd34ccfe009ad21d16100ae2aef9b378a512d (diff) | |
download | linux-ee0c503eacfb97e1d443baf5a03939201d0244f5.tar.gz linux-ee0c503eacfb97e1d443baf5a03939201d0244f5.tar.bz2 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.h | 3 |
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 |