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

From: Michael Riesch
Date: Tue Feb 20 2024 - 04:42:59 EST


Use the recently introduced port definitions instead of hardcoded
constants.

Signed-off-by: Michael Riesch <michael.riesch@xxxxxxxxxxxxxx>
---
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@xxxxxxxxxxx>
*/

+#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