aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/sti
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-08-04 06:41:54 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-26 08:36:45 -0400
commitc06f6be6a7fd894204dea60f1d5fdb243f9a5138 (patch)
tree233605bdffcb0fa03e4eb53460d18639c3aa77ec /drivers/media/platform/sti
parentmedia: vivid: fix incorrect HDMI input/output CEC logging (diff)
downloadlinux-dev-c06f6be6a7fd894204dea60f1d5fdb243f9a5138.tar.xz
linux-dev-c06f6be6a7fd894204dea60f1d5fdb243f9a5138.zip
media: stih-cec: use CEC_CAP_DEFAULTS
Use the new CEC_CAP_DEFAULTS define in this driver. This also adds the CEC_CAP_RC capability which was missing here (and this is also the reason for this new define, to avoid missing such capabilities). Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/sti')
-rw-r--r--drivers/media/platform/sti/cec/stih-cec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/platform/sti/cec/stih-cec.c b/drivers/media/platform/sti/cec/stih-cec.c
index dccbdaebb7a8..70160df36de9 100644
--- a/drivers/media/platform/sti/cec/stih-cec.c
+++ b/drivers/media/platform/sti/cec/stih-cec.c
@@ -351,9 +351,7 @@ static int stih_cec_probe(struct platform_device *pdev)
}
cec->adap = cec_allocate_adapter(&sti_cec_adap_ops, cec,
- CEC_NAME,
- CEC_CAP_LOG_ADDRS | CEC_CAP_PASSTHROUGH |
- CEC_CAP_TRANSMIT, CEC_MAX_LOG_ADDRS);
+ CEC_NAME, CEC_CAP_DEFAULTS, CEC_MAX_LOG_ADDRS);
ret = PTR_ERR_OR_ZERO(cec->adap);
if (ret)
return ret;