Re: [RFC PATCH] debugfs: add tools to printk 32-bit registers

Mark Brown
2011-11-16T11:31:53Z

On Tue, Nov 15, 2011 at 01:20:12PM -0800, Greg KH wrote:
> On Tue, Nov 15, 2011 at 02:02:30PM +0100, Alessandro Rubini wrote:

> > 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.

> Nice, but a few minor questions:

Hrm, we have something similar in regmap but in the form

number: value

Might be worth looking at that for the seeking implementation, or to
suggest improvements to the regmap one.