scripts: kconfig: tweak dt_chosen_label

Now that we've removed the label property from most devicetree nodes
the dt_chosen_label will end up returning "" in most cases.  For the
small handful of cases that the function is used, return the node.name
instead as this matches what DEVICE_DT_NAME will do.

Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
Kumar Gala 2022-08-04 11:23:13 -05:00 committed by Carles Cufí
parent 5897de1e53
commit 57538262e1

View File

@ -60,7 +60,7 @@ def dt_chosen_label(kconf, _, chosen):
return ""
if "label" not in node.props:
return ""
return node.name
return node.props["label"].val