regmap: debugfs: Factor out debugfs_tot_len calc into a function
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Mon, 11 Feb 2013 10:50:59 +0000 (10:50 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 11 Feb 2013 11:25:33 +0000 (11:25 +0000)
commit4dd7c5531d3b046574da39096b1a66c738aca102
tree35924e82be3e915577262cc4b27dd9f34fb7b802
parentcf57d6071f0610c99856c006ac06eb98a151f485
regmap: debugfs: Factor out debugfs_tot_len calc into a function

In preparation to support the regmap debugfs ranges functionality
factor this code out to a separate function.  We'll need to ensure
that the value has been correctly calculated from two separate places
in the code.

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