summaryrefslogtreecommitdiffstats
path: root/bsp/meta-rcar/meta-rcar-gen3-adas/recipes-kernel/linux/linux-renesas/0524-media-i2c-dummy-fix-DT-parse.patch
blob: f567d5df14d797ed31816620d066802d5d3418da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 8e338812615c72dad0fe17ea5a135ffdcc7b25a7 Mon Sep 17 00:00:00 2001
From: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Date: Tue, 28 Jul 2020 21:12:51 +0300
Subject: [PATCH] media: i2c: dummy: fix DT parse

This fixes the parse of dummy field

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
---
 drivers/media/i2c/soc_camera/dummy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/i2c/soc_camera/dummy.c b/drivers/media/i2c/soc_camera/dummy.c
index 346b5dd..3be2728 100644
--- a/drivers/media/i2c/soc_camera/dummy.c
+++ b/drivers/media/i2c/soc_camera/dummy.c
@@ -386,7 +386,7 @@ static int dummy_parse_dt(struct device_node *np, struct dummy_priv *priv)
 		if (!endpoint)
 			break;
 
-		of_property_read_u32(endpoint, "dummy", &priv->dummy);
+		of_property_read_u32(np, "dummy", &priv->dummy);
 
 		if (of_property_read_u32(np, "dummy,width", &priv->max_width))
 			priv->max_width = width;
-- 
2.7.4