Skip to content
Browse files

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 <>
  • Loading branch information...
galak authored and nashif committed Jun 22, 2019
1 parent 3408bfe commit 74818bcb49a96b77132eab859d467941985f2847
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/dts/extract/
@@ -46,7 +46,7 @@ def extract(self, node_path, prop, prop_type, def_label):
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):

0 comments on commit 74818bc

Please sign in to comment.
You can’t perform that action at this time.