]> git.karo-electronics.de Git - linux-beck.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)
commitc2c1ee66016a45477f58f0fd30907b1e959ca76b
tree77572b80e8012493804fdbcbd8c5f26186de2c9e
parentf3eb83994cb4c172ce5028b5ae7ea08462cc3f1d
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