]> 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)
commitf16931baffb5c273880f836528311ea37b95f34f
tree3e1688e275f749d53d6b276ed00260243d254e0c
parentd983f0a25e3c5d6b0d328fbb611d37ec94e18495
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