media: s5p-cec: use CEC_CAP_DEFAULTS
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 4 Aug 2017 10:41:53 +0000 (06:41 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 12:13:26 +0000 (08:13 -0400)
Use the new CEC_CAP_DEFAULTS define in the s5p-cec driver.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/s5p-cec/s5p_cec.c

index 8e06071a79778dc94148a9ce2ec7ae5f47e76ba2..58d200e7c8382de8edc841b17b1022a2c15ddb85 100644 (file)
@@ -219,11 +219,8 @@ static int s5p_cec_probe(struct platform_device *pdev)
        if (cec->notifier == NULL)
                return -ENOMEM;
 
-       cec->adap = cec_allocate_adapter(&s5p_cec_adap_ops, cec,
-               CEC_NAME,
-               CEC_CAP_LOG_ADDRS | CEC_CAP_TRANSMIT |
-               CEC_CAP_PASSTHROUGH | CEC_CAP_RC |
-               (needs_hpd ? CEC_CAP_NEEDS_HPD : 0), 1);
+       cec->adap = cec_allocate_adapter(&s5p_cec_adap_ops, cec, CEC_NAME,
+               CEC_CAP_DEFAULTS | (needs_hpd ? CEC_CAP_NEEDS_HPD : 0), 1);
        ret = PTR_ERR_OR_ZERO(cec->adap);
        if (ret)
                return ret;