]> git.dujemihanovic.xyz Git - u-boot.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)
commit689ca8c5d123445a1d23f515fd1c8fb407cfb622
tree6afb285ca3c3a7e4747e194b36ddf2717fe3a13c
parentcc6328412c3ba40c324f531fa5648d08573db110
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