]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdec1ec28493d9e8b3bd56f8af80bf281cc5cfbb5
tree35924e82be3e915577262cc4b27dd9f34fb7b802
parent14bbc66a90f6396701b5a8e656a3251ff4369c38
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