[PATCH 08/14] media: rockchip: cif: use port definitions from new header file

Michael Riesch michael.riesch at wolfvision.net
Tue Feb 20 01:39:18 PST 2024


Use the recently introduced port definitions instead of hardcoded
constants.

Signed-off-by: Michael Riesch <michael.riesch at wolfvision.net>
---
 drivers/media/platform/rockchip/cif/cif-dev.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/media/platform/rockchip/cif/cif-dev.c b/drivers/media/platform/rockchip/cif/cif-dev.c
index 923831827be4..c4282449a93d 100644
--- a/drivers/media/platform/rockchip/cif/cif-dev.c
+++ b/drivers/media/platform/rockchip/cif/cif-dev.c
@@ -7,6 +7,7 @@
  * Copyright (C) 2023 Mehdi Djait <mehdi.djait at bootlin.com>
  */
 
+#include <dt-bindings/media/rockchip-cif.h>
 #include <linux/clk.h>
 #include <linux/delay.h>
 #include <linux/interrupt.h>
@@ -85,7 +86,8 @@ static int cif_subdev_notifier(struct cif_device *cif_dev)
 
 	v4l2_async_nf_init(ntf, &cif_dev->v4l2_dev);
 
-	ep = fwnode_graph_get_endpoint_by_id(dev_fwnode(dev), 0, 0,
+	ep = fwnode_graph_get_endpoint_by_id(dev_fwnode(dev),
+					     MEDIA_ROCKCHIP_CIF_DVP, 0,
 					     FWNODE_GRAPH_ENDPOINT_NEXT);
 	if (!ep)
 		return -ENODEV;

-- 
2.30.2




More information about the linux-arm-kernel mailing list