regmap: debugfs: Add a registers `range' file
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Wed, 20 Feb 2013 12:15:23 +0000 (12:15 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 4 Mar 2013 02:33:03 +0000 (10:33 +0800)
commit065b4c587557dcd3dc8d3ff1ba2b9ecc6e0c6668
treedfe0d20d12189d4471fd2feafca736ca67a2997a
parent480738de0e076d759a973be623fac195cb901b82
regmap: debugfs: Add a registers `range' file

This file lists the register ranges in the register map.  The condition
to split the range is based on whether the block is readable or not.

Ensure that we lock the `debugfs_off_cache' list whenever we access
and modify the list.  There is a possible race otherwise between the
read() operations of the `registers' file and the `range' file.

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/internal.h
drivers/base/regmap/regmap-debugfs.c