]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: clk: correctly handle depth for clk dump
authorPatrick Delaunay <patrick.delaunay@st.com>
Thu, 30 Jul 2020 12:04:10 +0000 (14:04 +0200)
committerLukasz Majewski <lukma@denx.de>
Mon, 24 Aug 2020 09:03:26 +0000 (11:03 +0200)
commit6508c4769b8f559e897d01cc21d211d6bd2e2b21
tree6afb285ca3c3a7e4747e194b36ddf2717fe3a13c
parenta394a19d561feaec41d3d1c877d5286e5ef599ab
cmd: clk: correctly handle depth for clk dump

Update depth only when clock uclass is found to have correct display
of command "clk dump".

Without this patch, the displayed depth is the binding depth for
all the uclass and that can be strange as only clock uclass nodes
are displayed.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/clk.c