summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-01-17 10:47:12 -0700
committerTom Rini <trini@konsulko.com>2023-01-23 18:11:39 -0500
commit3d01254140fc9e5e900d739cb97bd9fba6aa2b68 (patch)
treef0ab5ee057999c7b07d19beefd3761ddeb6696a8 /include
parentc0f19fedaa742adbe0f4e29e9a956ea05fe22057 (diff)
downloadu-boot-3d01254140fc9e5e900d739cb97bd9fba6aa2b68.tar.gz
u-boot-3d01254140fc9e5e900d739cb97bd9fba6aa2b68.tar.bz2
u-boot-3d01254140fc9e5e900d739cb97bd9fba6aa2b68.zip
dm: core: Support sorting devices with dm tree
Add a -s flag to sort the top-level devices in order of uclass ID. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/dm/util.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/dm/util.h b/include/dm/util.h
index e10c6060ce..4bb49e9e8c 100644
--- a/include/dm/util.h
+++ b/include/dm/util.h
@@ -26,8 +26,12 @@ struct list_head;
*/
int list_count_items(struct list_head *head);
-/* Dump out a tree of all devices */
-void dm_dump_tree(void);
+/**
+ * Dump out a tree of all devices
+ *
+ * @sort: Sort by uclass name
+ */
+void dm_dump_tree(bool sort);
/* Dump out a list of uclasses and their devices */
void dm_dump_uclass(void);