]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - lib/vsprintf.c
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)
commit900cca2944254edd2d54dc181629314d3177a4af
tree3e1688e275f749d53d6b276ed00260243d254e0c
parente8a7ba5f5c8c0c94c0c7f1bcd53c0289560c7446
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