Commit 017e7d02 authored by Markus Elfring's avatar Markus Elfring Committed by Hans-Christian Noren Egtvedt

AVR32-clock: Combine nine seq_printf() calls into one call in clk_show()

Some data were printed into a sequence by nine separate function calls.
Print the same data by a single function call instead.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
parent 65c0787c
...@@ -261,15 +261,25 @@ static int clk_show(struct seq_file *s, void *unused) ...@@ -261,15 +261,25 @@ static int clk_show(struct seq_file *s, void *unused)
struct clk *clk; struct clk *clk;
/* show all the power manager registers */ /* show all the power manager registers */
seq_printf(s, "MCCTRL = %8x\n", pm_readl(MCCTRL)); seq_printf(s,
seq_printf(s, "CKSEL = %8x\n", pm_readl(CKSEL)); "MCCTRL = %8x\n"
seq_printf(s, "CPUMASK = %8x\n", pm_readl(CPU_MASK)); "CKSEL = %8x\n"
seq_printf(s, "HSBMASK = %8x\n", pm_readl(HSB_MASK)); "CPUMASK = %8x\n"
seq_printf(s, "PBAMASK = %8x\n", pm_readl(PBA_MASK)); "HSBMASK = %8x\n"
seq_printf(s, "PBBMASK = %8x\n", pm_readl(PBB_MASK)); "PBAMASK = %8x\n"
seq_printf(s, "PLL0 = %8x\n", pm_readl(PLL0)); "PBBMASK = %8x\n"
seq_printf(s, "PLL1 = %8x\n", pm_readl(PLL1)); "PLL0 = %8x\n"
seq_printf(s, "IMR = %8x\n", pm_readl(IMR)); "PLL1 = %8x\n"
"IMR = %8x\n",
pm_readl(MCCTRL),
pm_readl(CKSEL),
pm_readl(CPU_MASK),
pm_readl(HSB_MASK),
pm_readl(PBA_MASK),
pm_readl(PBB_MASK),
pm_readl(PLL0),
pm_readl(PLL1),
pm_readl(IMR));
for (i = 0; i < 8; i++) { for (i = 0; i < 8; i++) {
if (i == 5) if (i == 5)
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment