diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2017-08-04 12:41:51 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-09 15:36:54 +0200 |
commit | ee0c503eacfb97e1d443baf5a03939201d0244f5 (patch) | |
tree | 62077826572742a6faa46c44dffed4b1cf27869f /include/media/cec.h | |
parent | media: cec-funcs.h: cec_ops_report_features: set *dev_features to NULL (diff) | |
download | linux-ee0c503eacfb97e1d443baf5a03939201d0244f5.tar.xz 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 |