diff options
author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-02-23 03:44:37 -0500 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-02-23 08:57:57 -0500 |
commit | 940192e3c651eb6b97b42cb4c28e9e8471675cd2 (patch) | |
tree | 73aa34d7f7051195b317987da7ffe643780e83f8 /arch/arm/mach-at91/clock.c | |
parent | fb7e197bec45f15299315ed14292f09086d90a0b (diff) |
ARM: at91/PMC: move assignment out of printf
We move the assignment of values of register out of the
seq_printf() calls: It is obviously more readable.
Reported-by: Ryan Mallon <rmallon@gmail.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/clock.c')
-rw-r--r-- | arch/arm/mach-at91/clock.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/arch/arm/mach-at91/clock.c b/arch/arm/mach-at91/clock.c index d1b4e0707e4d..9ab862740161 100644 --- a/arch/arm/mach-at91/clock.c +++ b/arch/arm/mach-at91/clock.c | |||
@@ -432,19 +432,24 @@ static int at91_clk_show(struct seq_file *s, void *unused) | |||
432 | u32 scsr, pcsr, uckr = 0, sr; | 432 | u32 scsr, pcsr, uckr = 0, sr; |
433 | struct clk *clk; | 433 | struct clk *clk; |
434 | 434 | ||
435 | seq_printf(s, "SCSR = %8x\n", scsr = at91_sys_read(AT91_PMC_SCSR)); | 435 | scsr = at91_sys_read(AT91_PMC_SCSR); |
436 | seq_printf(s, "PCSR = %8x\n", pcsr = at91_sys_read(AT91_PMC_PCSR)); | 436 | pcsr = at91_sys_read(AT91_PMC_PCSR); |
437 | sr = at91_sys_read(AT91_PMC_SR); | ||
438 | seq_printf(s, "SCSR = %8x\n", scsr); | ||
439 | seq_printf(s, "PCSR = %8x\n", pcsr); | ||
437 | seq_printf(s, "MOR = %8x\n", at91_sys_read(AT91_CKGR_MOR)); | 440 | seq_printf(s, "MOR = %8x\n", at91_sys_read(AT91_CKGR_MOR)); |
438 | seq_printf(s, "MCFR = %8x\n", at91_sys_read(AT91_CKGR_MCFR)); | 441 | seq_printf(s, "MCFR = %8x\n", at91_sys_read(AT91_CKGR_MCFR)); |
439 | seq_printf(s, "PLLA = %8x\n", at91_sys_read(AT91_CKGR_PLLAR)); | 442 | seq_printf(s, "PLLA = %8x\n", at91_sys_read(AT91_CKGR_PLLAR)); |
440 | if (cpu_has_pllb()) | 443 | if (cpu_has_pllb()) |
441 | seq_printf(s, "PLLB = %8x\n", at91_sys_read(AT91_CKGR_PLLBR)); | 444 | seq_printf(s, "PLLB = %8x\n", at91_sys_read(AT91_CKGR_PLLBR)); |
442 | if (cpu_has_utmi()) | 445 | if (cpu_has_utmi()) { |
443 | seq_printf(s, "UCKR = %8x\n", uckr = at91_sys_read(AT91_CKGR_UCKR)); | 446 | uckr = at91_sys_read(AT91_CKGR_UCKR); |
447 | seq_printf(s, "UCKR = %8x\n", uckr); | ||
448 | } | ||
444 | seq_printf(s, "MCKR = %8x\n", at91_sys_read(AT91_PMC_MCKR)); | 449 | seq_printf(s, "MCKR = %8x\n", at91_sys_read(AT91_PMC_MCKR)); |
445 | if (cpu_has_upll()) | 450 | if (cpu_has_upll()) |
446 | seq_printf(s, "USB = %8x\n", at91_sys_read(AT91_PMC_USB)); | 451 | seq_printf(s, "USB = %8x\n", at91_sys_read(AT91_PMC_USB)); |
447 | seq_printf(s, "SR = %8x\n", sr = at91_sys_read(AT91_PMC_SR)); | 452 | seq_printf(s, "SR = %8x\n", sr); |
448 | 453 | ||
449 | seq_printf(s, "\n"); | 454 | seq_printf(s, "\n"); |
450 | 455 | ||