From 74818bcb49a96b77132eab859d467941985f2847 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Sat, 22 Jun 2019 15:45:46 -0500 Subject: [PATCH] scripts/dts: Treat array always as a list If the type of property is a 'array' we should generate defines as if its a list even if theres only a single element in the list. Signed-off-by: Kumar Gala --- scripts/dts/extract/default.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dts/extract/default.py b/scripts/dts/extract/default.py index ad69ff2ab06..7d481312027 100644 --- a/scripts/dts/extract/default.py +++ b/scripts/dts/extract/default.py @@ -46,7 +46,7 @@ class DTDefault(DTDirective): else: prop_values = reduced[node_path]['props'][prop] - if prop_type == "string-array": + if prop_type == "string-array" or prop_type == "array": if type(prop_values) is not list: prop_values = [ prop_values, ] if isinstance(prop_values, list):