]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: debugfs: Add a `max_reg' member in struct regmap_debugfs_off_cache
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Fri, 8 Feb 2013 12:47:14 +0000 (12:47 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 11 Feb 2013 11:25:32 +0000 (11:25 +0000)
commit4257e050dde0adcd7f42e1c48a7569e30eb2d562
tree77572b80e8012493804fdbcbd8c5f26186de2c9e
parent682a7265fc830069d3e6299ac0f24adff7b611ec
regmap: debugfs: Add a `max_reg' member in struct regmap_debugfs_off_cache

We are keeping track of the maximum register as well, this will make
things easier for us in sharing this code with the code implementing
the register ranges functionality.  It also simplifies a bit the
calculations when looking for the relevant block:offset from within
the cache.

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