[PATCH v2 1/3] parser: add TYPE_STRING marker to path references

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Path references are also a string, so add TYPE_STRING marker in addition
to REF_PATH.

Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
---
Not really that familiar with the parsing code, so maybe this should be 
done differently.

 dtc-parser.y | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dtc-parser.y b/dtc-parser.y
index 815481a9bb23..dd70ebf386f4 100644
--- a/dtc-parser.y
+++ b/dtc-parser.y
@@ -287,6 +287,7 @@ propdata:
 		}
 	| propdataprefix DT_REF
 		{
+			$1 = data_add_marker($1, TYPE_STRING, $2);
 			$$ = data_add_marker($1, REF_PATH, $2);
 		}
 	| propdataprefix DT_INCBIN '(' DT_STRING ',' integer_prim ',' integer_prim ')'
-- 
2.17.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree-compiler" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux