debugfs: add tools to printk 32-bit registers
authorAlessandro Rubini <rubini@gnudd.com>
Fri, 18 Nov 2011 13:50:21 +0000 (14:50 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Nov 2011 18:31:22 +0000 (10:31 -0800)
commit1a087c6ad975bcc193b4bab2e9d61f9c6c547138
tree207b0b121a2e5a48613e9225beb1c49ca67a92a7
parentfe7484834bb614c2c205726647635171ce6cc070
debugfs: add tools to printk 32-bit registers

Some debugfs file I deal with are mostly blocks of registers,
i.e. lines of the form "<name> = 0x<value>". Some files are only
registers, some include registers blocks among other material.  This
patch introduces data structures and functions to deal with both
cases.  I expect more users of this over time.

Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Acked-by: Giancarlo Asnaghi <giancarlo.asnaghi@st.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Documentation/filesystems/debugfs.txt
fs/debugfs/file.c
include/linux/debugfs.h