mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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>
This commit is contained in:
parent
12d152620d
commit
cc6328412c
1 changed files with 15 additions and 15 deletions
30
cmd/clk.c
30
cmd/clk.c
|
@ -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);
|
||||
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("|-- ");
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue