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

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>
drivers/media/platform/stm32/stm32-cec.c

index 9ab896b01ee8942c98dabaecba5e0c7140ad638c..0e5aa17bdd40a977f450d894b2007a77c73769b4 100644 (file)
@@ -246,9 +246,7 @@ static const struct regmap_config stm32_cec_regmap_cfg = {
 
 static int stm32_cec_probe(struct platform_device *pdev)
 {
-       u32 caps = CEC_CAP_LOG_ADDRS | CEC_CAP_PASSTHROUGH |
-                  CEC_CAP_TRANSMIT | CEC_CAP_RC | CEC_CAP_PHYS_ADDR |
-                  CEC_MODE_MONITOR_ALL;
+       u32 caps = CEC_CAP_DEFAULTS | CEC_CAP_PHYS_ADDR | CEC_MODE_MONITOR_ALL;
        struct resource *res;
        struct stm32_cec *cec;
        void __iomem *mmio;