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>
This commit is contained in:
parent
79bcd34ccf
commit
ee0c503eac
@ -31,6 +31,9 @@
|
|||||||
#include <media/rc-core.h>
|
#include <media/rc-core.h>
|
||||||
#include <media/cec-notifier.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
|
* struct cec_devnode - cec device node
|
||||||
* @dev: cec device
|
* @dev: cec device
|
||||||
|
Loading…
x
Reference in New Issue
Block a user