]> git.baikalelectronics.ru Git - kernel.git/commit
lib/vsprintf: add %pC{,n,r} format specifiers for clocks
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 15 Apr 2015 23:17:20 +0000 (16:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 15 Apr 2015 23:35:23 +0000 (16:35 -0700)
commit9d0cf8b110ade7d1680540fbb8e18416e03268ab
tree3e1688e275f749d53d6b276ed00260243d254e0c
parent0a1de9d8daa4a04cf4c4c947ae12c21d13adb98e
lib/vsprintf: add %pC{,n,r} format specifiers for clocks

Add format specifiers for printing struct clk:
  - '%pC' or '%pCn': name (Common Clock Framework) or address (legacy
    clock framework) of the clock,
  - '%pCr': rate of the clock.

[akpm@linux-foundation.org: omit code if !CONFIG_HAVE_CLK]
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Mike Turquette <mturquette@linaro.org>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/printk-formats.txt
lib/vsprintf.c