diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2020-07-30 14:04:09 +0200 |
---|---|---|
committer | Lukasz Majewski <lukma@denx.de> | 2020-08-24 11:03:26 +0200 |
commit | cc6328412c3ba40c324f531fa5648d08573db110 (patch) | |
tree | 95ce1a47b328581c8c54cf8d197dc8295ef8af6f /cmd | |
parent | 12d152620d9de9ea966e1136b7f48f641c981bac (diff) | |
download | u-boot-cc6328412c3ba40c324f531fa5648d08573db110.zip u-boot-cc6328412c3ba40c324f531fa5648d08573db110.tar.gz u-boot-cc6328412c3ba40c324f531fa5648d08573db110.tar.bz2 |
cmd: clk: cosmetic: correct code alignment in show_clks
Correct code alignment in show_clks() function.
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/clk.c | 32 |
1 files changed, 16 insertions, 16 deletions
@@ -25,24 +25,24 @@ static void show_clks(struct udevice *dev, int depth, int last_flag) if (device_get_uclass_id(dev) == UCLASS_CLK && clkp) { rate = clk_get_rate(clkp); - printf(" %-12u %8d ", rate, clkp->enable_count); - - for (i = depth; i >= 0; i--) { - is_last = (last_flag >> i) & 1; - if (i) { - if (is_last) - printf(" "); - else - printf("| "); - } else { - if (is_last) - printf("`-- "); - else - printf("|-- "); + printf(" %-12u %8d ", rate, clkp->enable_count); + + for (i = depth; i >= 0; i--) { + is_last = (last_flag >> i) & 1; + if (i) { + if (is_last) + printf(" "); + else + printf("| "); + } else { + if (is_last) + printf("`-- "); + else + printf("|-- "); + } } - } - printf("%s\n", dev->name); + printf("%s\n", dev->name); } list_for_each_entry(child, &dev->child_head, sibling_node) { |